summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-06-12 11:22:00 +0200
committerSebastien Helleu <flashcode@flashtux.org>2009-06-12 11:22:00 +0200
commited47fff730a83363f5288602a785529f28a1edec (patch)
tree68fc451584e68f840d912ef4b90a963a806015e4 /src/gui
parentae23fb0b46cc9698c6d4f4b79918174baf9c2339 (diff)
downloadweechat-ed47fff730a83363f5288602a785529f28a1edec.zip
Fix refresh of hidden bars (patch #6837)
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-bar-item.c33
1 files changed, 15 insertions, 18 deletions
diff --git a/src/gui/gui-bar-item.c b/src/gui/gui-bar-item.c
index 73a233db6..d4456820d 100644
--- a/src/gui/gui-bar-item.c
+++ b/src/gui/gui-bar-item.c
@@ -447,33 +447,30 @@ gui_bar_item_update (const char *item_name)
for (ptr_bar = gui_bars; ptr_bar; ptr_bar = ptr_bar->next_bar)
{
- if (!CONFIG_BOOLEAN(ptr_bar->options[GUI_BAR_OPTION_HIDDEN]))
+ gui_bar_get_item_index (ptr_bar, item_name, &index_item, &index_subitem);
+ if ((index_item >= 0) && (index_subitem >= 0))
{
- gui_bar_get_item_index (ptr_bar, item_name, &index_item, &index_subitem);
- if ((index_item >= 0) && (index_subitem >= 0))
+ if (ptr_bar->bar_window)
{
- if (ptr_bar->bar_window)
- {
- ptr_bar->bar_window->items_refresh_needed[index_item][index_subitem] = 1;
- }
- else
+ ptr_bar->bar_window->items_refresh_needed[index_item][index_subitem] = 1;
+ }
+ else
+ {
+ for (ptr_window = gui_windows; ptr_window;
+ ptr_window = ptr_window->next_window)
{
- for (ptr_window = gui_windows; ptr_window;
- ptr_window = ptr_window->next_window)
+ for (ptr_bar_window = ptr_window->bar_windows;
+ ptr_bar_window;
+ ptr_bar_window = ptr_bar_window->next_bar_window)
{
- for (ptr_bar_window = ptr_window->bar_windows;
- ptr_bar_window;
- ptr_bar_window = ptr_bar_window->next_bar_window)
+ if (ptr_bar_window->bar == ptr_bar)
{
- if (ptr_bar_window->bar == ptr_bar)
- {
- ptr_bar_window->items_refresh_needed[index_item][index_subitem] = 1;
- }
+ ptr_bar_window->items_refresh_needed[index_item][index_subitem] = 1;
}
}
}
- gui_bar_ask_refresh (ptr_bar);
}
+ gui_bar_ask_refresh (ptr_bar);
}
}
}