From a3accf4bbed8229881b534c8a813b0fbea76228d Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 27 Sep 2000 00:11:06 +0000 Subject: [PATCH] Also moving windows and changing refnum updates activity list. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@679 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/statusbar-items.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/fe-text/statusbar-items.c b/src/fe-text/statusbar-items.c index 2b6abfdb..47639426 100644 --- a/src/fe-text/statusbar-items.c +++ b/src/fe-text/statusbar-items.c @@ -471,6 +471,11 @@ static void sig_statusbar_activity_window_destroyed(WINDOW_REC *window) statusbar_item_redraw(activity_item); } +static void sig_statusbar_activity_updated(void) +{ + statusbar_item_redraw(activity_item); +} + /* redraw -- more -- */ static void statusbar_more(SBAR_ITEM_REC *item, int ypos) { @@ -886,6 +891,7 @@ void statusbar_items_init(void) activity_list = NULL; signal_add("window activity", (SIGNAL_FUNC) sig_statusbar_activity_hilight); signal_add("window destroyed", (SIGNAL_FUNC) sig_statusbar_activity_window_destroyed); + signal_add("window refnum changed", (SIGNAL_FUNC) sig_statusbar_activity_updated); /* more */ more_item = NULL; @@ -947,6 +953,7 @@ void statusbar_items_deinit(void) /* activity */ signal_remove("window activity", (SIGNAL_FUNC) sig_statusbar_activity_hilight); signal_remove("window destroyed", (SIGNAL_FUNC) sig_statusbar_activity_window_destroyed); + signal_remove("window refnum changed", (SIGNAL_FUNC) sig_statusbar_activity_updated); g_list_free(activity_list); /* more */