diff options
author | Timo Sirainen <cras@irssi.org> | 2000-09-27 00:08:03 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-09-27 00:08:03 +0000 |
commit | 407ee2bd1b08da0389ee2d3937d3e993f4b15449 (patch) | |
tree | 778ff1449833613857c97e3f581dfeddaa8217b4 /src/fe-common | |
parent | bae879de223ea2f6e3f2ad69b70ad19ba905354d (diff) | |
download | irssi-407ee2bd1b08da0389ee2d3937d3e993f4b15449.zip |
Closing window didn't update window activity list.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@678 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/windows.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/fe-common/core/windows.c b/src/fe-common/core/windows.c index 5b362af9..e08a6c1a 100644 --- a/src/fe-common/core/windows.c +++ b/src/fe-common/core/windows.c @@ -101,8 +101,6 @@ static void windows_pack(int removed_refnum) void window_destroy(WINDOW_REC *window) { - int refnum; - g_return_if_fail(window != NULL); if (window->destroying) return; @@ -117,17 +115,16 @@ void window_destroy(WINDOW_REC *window) while (window->items != NULL) window_remove_item(window, window->items->data); + windows_pack(window->refnum); + signal_emit("window destroyed", 1, window); g_slist_foreach(window->waiting_channels, (GFunc) g_free, NULL); g_slist_free(window->waiting_channels); - refnum = window->refnum; g_free_not_null(window->theme_name); g_free_not_null(window->name); g_free(window); - - windows_pack(refnum); } void window_set_active(WINDOW_REC *window) |