diff options
author | Timo Sirainen <cras@irssi.org> | 2000-12-02 22:07:24 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-12-02 22:07:24 +0000 |
commit | 47eda740cca35dcd5987e38af573a9bf9af39a15 (patch) | |
tree | 593f619a42304d531dcfb7c5fdec372d5f03bcc1 /src | |
parent | d1028e2a7cad52025d268e7dcb541a866f5f66f4 (diff) | |
download | irssi-47eda740cca35dcd5987e38af573a9bf9af39a15.zip |
/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
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/window-items.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/fe-common/core/window-items.c b/src/fe-common/core/window-items.c index 3e0a15db..6e08ce39 100644 --- a/src/fe-common/core/window-items.c +++ b/src/fe-common/core/window-items.c @@ -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) { /* 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) { 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); } |