diff options
author | Timo Sirainen <cras@irssi.org> | 2000-06-28 22:58:54 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-06-28 22:58:54 +0000 |
commit | 6b7d03e2cf1b4a9f63c589c13219ff11ad6c84f2 (patch) | |
tree | 67b2bda807664044901ea4ef22d75bd4064a2826 /src | |
parent | 77adc998efb13ba9deb9851f5b53294b389077d3 (diff) | |
download | irssi-6b7d03e2cf1b4a9f63c589c13219ff11ad6c84f2.zip |
/SET window_close_on_part -> /SET autoclose_windows
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@394 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/window-items.c | 4 | ||||
-rw-r--r-- | src/fe-common/irc/fe-channels.c | 4 | ||||
-rw-r--r-- | src/fe-common/irc/fe-query.c | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/src/fe-common/core/window-items.c b/src/fe-common/core/window-items.c index 0c71a0e4..c87be0bf 100644 --- a/src/fe-common/core/window-items.c +++ b/src/fe-common/core/window-items.c @@ -241,7 +241,9 @@ void window_item_create(WI_ITEM_REC *item, int automatic) str = item->server == NULL ? NULL : g_strdup_printf("%s %s", ((SERVER_REC *) item->server)->tag, item->name); - reuse_unused_windows = settings_get_bool("reuse_unused_windows"); + reuse_unused_windows = + settings_get_bool("autoclose_windows") && + settings_get_bool("reuse_unused_windows") ; clear_waiting = TRUE; window = NULL; diff --git a/src/fe-common/irc/fe-channels.c b/src/fe-common/irc/fe-channels.c index 8eb1ebf9..7a895b4f 100644 --- a/src/fe-common/irc/fe-channels.c +++ b/src/fe-common/irc/fe-channels.c @@ -59,7 +59,7 @@ static void signal_channel_destroyed(CHANNEL_REC *channel) window_remove_item(window, (WI_ITEM_REC *) channel); if (windows->next != NULL && (!channel->joined || channel->left) && - settings_get_bool("window_close_on_part")) { + settings_get_bool("autoclose_windows")) { window_destroy(window); } } @@ -250,7 +250,7 @@ static void cmd_channel_remove(const char *data) void fe_channels_init(void) { - settings_add_bool("lookandfeel", "window_close_on_part", TRUE); + settings_add_bool("lookandfeel", "autoclose_windows", TRUE); signal_add("channel created", (SIGNAL_FUNC) signal_channel_created); signal_add("channel destroyed", (SIGNAL_FUNC) signal_channel_destroyed); diff --git a/src/fe-common/irc/fe-query.c b/src/fe-common/irc/fe-query.c index c87f7998..f2206726 100644 --- a/src/fe-common/irc/fe-query.c +++ b/src/fe-common/irc/fe-query.c @@ -72,7 +72,7 @@ static void signal_query_destroyed(QUERY_REC *query) window_remove_item(window, (WI_ITEM_REC *) query); if (windows->next != NULL && !query->unwanted && - settings_get_bool("window_close_on_part")) + settings_get_bool("autoclose_windows")) window_destroy(window); } } |