1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

/SET autocreate_windows - should we create new windows for new window

items or just place everything to one window


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@925 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-12-02 22:07:24 +00:00 committed by cras
parent d1028e2a7c
commit 47eda740cc

View File

@ -281,7 +281,12 @@ void window_item_create(WI_ITEM_REC *item, int automatic)
} }
} }
} }
g_free_not_null(str); g_free_not_null(str);
if (window == NULL && !settings_get_bool("autocreate_windows")) {
/* never create new windows automatically */
window = active_win;
}
if (window == NULL) { if (window == NULL) {
/* create new window to use */ /* create new window to use */
@ -314,6 +319,7 @@ static void signal_window_item_changed(WINDOW_REC *window, WI_ITEM_REC *item)
void window_items_init(void) void window_items_init(void)
{ {
settings_add_bool("lookandfeel", "reuse_unused_windows", FALSE); settings_add_bool("lookandfeel", "reuse_unused_windows", FALSE);
settings_add_bool("lookandfeel", "autocreate_windows", TRUE);
signal_add_last("window item changed", (SIGNAL_FUNC) signal_window_item_changed); signal_add_last("window item changed", (SIGNAL_FUNC) signal_window_item_changed);
} }