diff options
author | Timo Sirainen <cras@irssi.org> | 2001-10-14 11:17:13 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-10-14 11:17:13 +0000 |
commit | f86da8c0e5d644a46df07d60e6c30a96f7d5c3fa (patch) | |
tree | bf51c04b69920ac65e4518bd0e7b0ad1c98e7904 /src/fe-text/statusbar.c | |
parent | 1718083cf655dd8e3a1f4cf91dd6f2ee064a3b2a (diff) | |
download | irssi-f86da8c0e5d644a46df07d60e6c30a96f7d5c3fa.zip |
Window-statusbars are created correctly with /RELOAD, some input line
fixes related to /RELOAD.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1831 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/statusbar.c')
-rw-r--r-- | src/fe-text/statusbar.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fe-text/statusbar.c b/src/fe-text/statusbar.c index aa8b35b4..affbf13e 100644 --- a/src/fe-text/statusbar.c +++ b/src/fe-text/statusbar.c @@ -921,6 +921,13 @@ static void statusbar_item_signal_destroy(void *key, GSList *value) g_slist_free(value); } +static void sig_setup_reload(void) +{ + /* statusbar-config.c recreates root statusbars, + we need to create window-statusbars */ + g_slist_foreach(mainwindows, (GFunc) statusbars_add_visible, NULL); +} + void statusbar_init(void) { statusbar_groups = NULL; @@ -942,6 +949,7 @@ void statusbar_init(void) signal_add("mainwindow moved", (SIGNAL_FUNC) sig_mainwindow_resized); signal_add("window changed", (SIGNAL_FUNC) sig_window_changed); signal_add("mainwindow destroyed", (SIGNAL_FUNC) sig_mainwindow_destroyed); + signal_add_last("setup reread", (SIGNAL_FUNC) sig_setup_reload); } void statusbar_deinit(void) @@ -968,6 +976,7 @@ void statusbar_deinit(void) signal_remove("mainwindow moved", (SIGNAL_FUNC) sig_mainwindow_resized); signal_remove("window changed", (SIGNAL_FUNC) sig_window_changed); signal_remove("mainwindow destroyed", (SIGNAL_FUNC) sig_mainwindow_destroyed); + signal_remove("setup reread", (SIGNAL_FUNC) sig_setup_reload); statusbar_items_deinit(); statusbar_config_deinit(); |