mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
Support for "immortal" windows, that can't be closed until explicitly set to
mortal with /WINDOW IMMORTAL OFF. Status and msgs windows are immortal by default. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2422 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
59c5bb100a
commit
9bb16705a5
7 changed files with 69 additions and 7 deletions
|
|
@ -31,6 +31,7 @@ struct _WINDOW_REC {
|
|||
int level; /* message level */
|
||||
GSList *bound_items; /* list of WINDOW_BIND_RECs */
|
||||
|
||||
unsigned int immortal:1;
|
||||
unsigned int sticky_refnum:1;
|
||||
unsigned int destroying:1;
|
||||
|
||||
|
|
@ -65,6 +66,7 @@ void window_set_refnum(WINDOW_REC *window, int refnum);
|
|||
void window_set_name(WINDOW_REC *window, const char *name);
|
||||
void window_set_history(WINDOW_REC *window, const char *name);
|
||||
void window_set_level(WINDOW_REC *window, int level);
|
||||
void window_set_immortal(WINDOW_REC *window, int immortal);
|
||||
|
||||
/* return active item's name, or if none is active, window's name */
|
||||
char *window_get_active_name(WINDOW_REC *window);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue