diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-04-29 13:23:53 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-04-29 13:23:53 +0200 |
commit | 0470d6b8acc99d19618e9093b3d87111e1322587 (patch) | |
tree | 46dd8045e5615ff91a1c17ef3c4fa9032f443751 /src/gui/curses/gui-curses-bar.c | |
parent | 40b75633e7a2a58b1693602444795c872b4e3bb3 (diff) | |
download | weechat-0470d6b8acc99d19618e9093b3d87111e1322587.zip |
Added bar priority (replaces bar number)
Diffstat (limited to 'src/gui/curses/gui-curses-bar.c')
-rw-r--r-- | src/gui/curses/gui-curses-bar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/curses/gui-curses-bar.c b/src/gui/curses/gui-curses-bar.c index 21207f7de..fd644ad05 100644 --- a/src/gui/curses/gui-curses-bar.c +++ b/src/gui/curses/gui-curses-bar.c @@ -309,7 +309,7 @@ gui_bar_window_create_win (struct t_gui_bar_window *bar_window) /* * gui_bar_window_find_pos: find position for bar window (keeping list sorted - * by bar number) + * by bar priority) */ struct t_gui_bar_window * @@ -320,7 +320,7 @@ gui_bar_window_find_pos (struct t_gui_bar *bar, struct t_gui_window *window) for (ptr_bar_window = GUI_CURSES(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; } |