From bb4264a56c5d173784fad193c3cb99535a422be5 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Mon, 9 Jul 2012 17:08:30 +0200 Subject: [PATCH] core: fix refresh of bar items "buffer_filter" and "scroll" in root bars (bug #36816) --- ChangeLog | 2 ++ src/gui/gui-bar-item.c | 16 ++++++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2cb2c3694..259212c71 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,8 @@ v0.3.9-dev, 2012-07-09 Version 0.3.9 (under dev!) -------------------------- +* core: fix refresh of bar items "buffer_filter" and "scroll" in root bars + (bug #36816) * core: add function "hook_set" in plugin API, add "subplugin" in hooks (set by script plugins), display subplugin in /help on commands (task #12049) * core: add option weechat.look.jump_smart_back_to_buffer (jump back to initial diff --git a/src/gui/gui-bar-item.c b/src/gui/gui-bar-item.c index 2f05c5025..3d293a410 100644 --- a/src/gui/gui-bar-item.c +++ b/src/gui/gui-bar-item.c @@ -1633,10 +1633,10 @@ gui_bar_item_init () gui_bar_item_new (NULL, gui_bar_item_names[GUI_BAR_ITEM_INPUT_PROMPT], &gui_bar_item_default_input_prompt, NULL); - gui_bar_item_hook_signal ("buffer_localvar_*", - gui_bar_item_names[GUI_BAR_ITEM_INPUT_PROMPT]); gui_bar_item_hook_signal ("buffer_switch", gui_bar_item_names[GUI_BAR_ITEM_INPUT_PROMPT]); + gui_bar_item_hook_signal ("buffer_localvar_*", + gui_bar_item_names[GUI_BAR_ITEM_INPUT_PROMPT]); /* input search */ gui_bar_item_new (NULL, @@ -1651,10 +1651,10 @@ gui_bar_item_init () gui_bar_item_new (NULL, gui_bar_item_names[GUI_BAR_ITEM_INPUT_TEXT], &gui_bar_item_default_input_text, NULL); - gui_bar_item_hook_signal ("input_text_*", - gui_bar_item_names[GUI_BAR_ITEM_INPUT_TEXT]); gui_bar_item_hook_signal ("buffer_switch", gui_bar_item_names[GUI_BAR_ITEM_INPUT_TEXT]); + gui_bar_item_hook_signal ("input_text_*", + gui_bar_item_names[GUI_BAR_ITEM_INPUT_TEXT]); /* time */ gui_bar_item_new (NULL, @@ -1718,6 +1718,8 @@ gui_bar_item_init () gui_bar_item_new (NULL, gui_bar_item_names[GUI_BAR_ITEM_BUFFER_FILTER], &gui_bar_item_default_buffer_filter, NULL); + gui_bar_item_hook_signal ("buffer_switch", + gui_bar_item_names[GUI_BAR_ITEM_BUFFER_FILTER]); gui_bar_item_hook_signal ("buffer_lines_hidden", gui_bar_item_names[GUI_BAR_ITEM_BUFFER_FILTER]); gui_bar_item_hook_signal ("filters_*", @@ -1736,6 +1738,8 @@ gui_bar_item_init () gui_bar_item_new (NULL, gui_bar_item_names[GUI_BAR_ITEM_SCROLL], &gui_bar_item_default_scroll, NULL); + gui_bar_item_hook_signal ("buffer_switch", + gui_bar_item_names[GUI_BAR_ITEM_SCROLL]); gui_bar_item_hook_signal ("window_scrolled", gui_bar_item_names[GUI_BAR_ITEM_SCROLL]); @@ -1761,10 +1765,10 @@ gui_bar_item_init () gui_bar_item_new (NULL, gui_bar_item_names[GUI_BAR_ITEM_BUFFER_TITLE], &gui_bar_item_default_buffer_title, NULL); - gui_bar_item_hook_signal ("buffer_title_changed", - gui_bar_item_names[GUI_BAR_ITEM_BUFFER_TITLE]); gui_bar_item_hook_signal ("buffer_switch", gui_bar_item_names[GUI_BAR_ITEM_BUFFER_TITLE]); + gui_bar_item_hook_signal ("buffer_title_changed", + gui_bar_item_names[GUI_BAR_ITEM_BUFFER_TITLE]); /* buffer nicklist */ gui_bar_item_new (NULL,