diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-04-15 13:50:01 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-04-15 13:50:01 +0200 |
commit | b87d709a7079e5c20b2d556158f57239c72095b7 (patch) | |
tree | e841adf778886b2a9930445e666584fe4b8e589c /src/gui/gtk | |
parent | 362ce3eca8f354d59aa975ff3bf3d35bceaaf3e6 (diff) | |
download | weechat-b87d709a7079e5c20b2d556158f57239c72095b7.zip |
New format for [bar] section in weechat.conf file, bar options can be set with /set command
Diffstat (limited to 'src/gui/gtk')
-rw-r--r-- | src/gui/gtk/gui-gtk-bar.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/gtk/gui-gtk-bar.c b/src/gui/gtk/gui-gtk-bar.c index 570cbed10..59b5a5b58 100644 --- a/src/gui/gtk/gui-gtk-bar.c +++ b/src/gui/gtk/gui-gtk-bar.c @@ -26,6 +26,7 @@ #include <stdlib.h> #include "../../core/weechat.h" +#include "../../core/wee-config.h" #include "../../core/wee-log.h" #include "../gui-bar.h" #include "../gui-chat.h" @@ -208,9 +209,9 @@ gui_bar_window_remove_unused_bars (struct t_gui_window *window) { next_bar_win = ptr_bar_win->next_bar_window; - if (((ptr_bar_win->bar->type == GUI_BAR_TYPE_WINDOW_ACTIVE) + if (((CONFIG_INTEGER(ptr_bar_win->bar->type) == GUI_BAR_TYPE_WINDOW_ACTIVE) && (window != gui_current_window)) - || ((ptr_bar_win->bar->type == GUI_BAR_TYPE_WINDOW_INACTIVE) + || ((CONFIG_INTEGER(ptr_bar_win->bar->type) == GUI_BAR_TYPE_WINDOW_INACTIVE) && (window == gui_current_window))) { gui_bar_window_free (ptr_bar_win, window); @@ -239,9 +240,9 @@ gui_bar_window_add_missing_bars (struct t_gui_window *window) for (ptr_bar = gui_bars; ptr_bar; ptr_bar = ptr_bar->next_bar) { - if (((ptr_bar->type == GUI_BAR_TYPE_WINDOW_ACTIVE) + if (((CONFIG_INTEGER(ptr_bar->type) == GUI_BAR_TYPE_WINDOW_ACTIVE) && (window == gui_current_window)) - || ((ptr_bar->type == GUI_BAR_TYPE_WINDOW_INACTIVE) + || ((CONFIG_INTEGER(ptr_bar->type) == GUI_BAR_TYPE_WINDOW_INACTIVE) && (window != gui_current_window))) { if (!gui_bar_window_search_bar (window, ptr_bar)) |