summaryrefslogtreecommitdiff
path: root/src/gui/gtk
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-04-29 13:23:53 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-04-29 13:23:53 +0200
commit0470d6b8acc99d19618e9093b3d87111e1322587 (patch)
tree46dd8045e5615ff91a1c17ef3c4fa9032f443751 /src/gui/gtk
parent40b75633e7a2a58b1693602444795c872b4e3bb3 (diff)
downloadweechat-0470d6b8acc99d19618e9093b3d87111e1322587.zip
Added bar priority (replaces bar number)
Diffstat (limited to 'src/gui/gtk')
-rw-r--r--src/gui/gtk/gui-gtk-bar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gtk/gui-gtk-bar.c b/src/gui/gtk/gui-gtk-bar.c
index d4853d97d..60fac1be7 100644
--- a/src/gui/gtk/gui-gtk-bar.c
+++ b/src/gui/gtk/gui-gtk-bar.c
@@ -165,7 +165,7 @@ gui_bar_window_find_pos (struct t_gui_bar *bar, struct t_gui_window *window)
for (ptr_bar_window = GUI_GTK(window)->bar_windows; ptr_bar_window;
ptr_bar_window = ptr_bar_window->next_bar_window)
{
- if (ptr_bar_window->bar->number > bar->number)
+ if (CONFIG_INTEGER(bar->priority) >= CONFIG_INTEGER(ptr_bar_window->bar->priority))
return ptr_bar_window;
}