diff options
author | Timo Sirainen <cras@irssi.org> | 2002-04-15 13:59:09 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-04-15 13:59:09 +0000 |
commit | 8b9c4823bfb9a1b60f31aa62eb882143e3dec153 (patch) | |
tree | 5370cc87f33e181e8d71933bddd701bb48093050 /src/fe-text | |
parent | 15667ec7ff00b151fde5e9d9927bb75f00f7c79a (diff) | |
download | irssi-8b9c4823bfb9a1b60f31aa62eb882143e3dec153.zip |
Rewritten signal handling code - it wasn't supposed to come before 0.9 irssi
but it doesn't break much things and is needed for Qt port :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2682 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/statusbar.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/fe-text/statusbar.c b/src/fe-text/statusbar.c index 9d39ede7..ac9a9d7e 100644 --- a/src/fe-text/statusbar.c +++ b/src/fe-text/statusbar.c @@ -859,8 +859,10 @@ static void statusbar_item_default_signals(SBAR_ITEM_REC *item) func = NULL; break; } - if (func != NULL) - signal_add_to_id(MODULE_NAME, 1, *pos, func); + if (func != NULL) { + signal_add_full_id(MODULE_NAME, 1, + *pos, func, NULL); + } } if (g_slist_find(list, item) == NULL) @@ -911,10 +913,10 @@ SBAR_ITEM_REC *statusbar_item_create(STATUSBAR_REC *bar, static void statusbar_signal_remove(int signal_id) { - signal_remove_id(signal_id, (SIGNAL_FUNC) statusbar_update_item); - signal_remove_id(signal_id, (SIGNAL_FUNC) statusbar_update_server); - signal_remove_id(signal_id, (SIGNAL_FUNC) statusbar_update_window); - signal_remove_id(signal_id, (SIGNAL_FUNC) statusbar_update_window_item); + signal_remove_id(signal_id, (SIGNAL_FUNC) statusbar_update_item, NULL); + signal_remove_id(signal_id, (SIGNAL_FUNC) statusbar_update_server, NULL); + signal_remove_id(signal_id, (SIGNAL_FUNC) statusbar_update_window, NULL); + signal_remove_id(signal_id, (SIGNAL_FUNC) statusbar_update_window_item, NULL); } static void statusbar_item_remove_signal(SBAR_ITEM_REC *item, int signal_id) |