diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-03-07 10:54:33 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-03-07 10:54:33 +0100 |
commit | 519f62c11d4c22f4544588a7f8f1ee7acc6a4a7c (patch) | |
tree | 459ebd9095079f6fc12b7dd10c6ee93ed6aa6f24 /src/gui/gui-bar-item.c | |
parent | 32e976ae72442b8ce36098c2b9d85a47db5cfda2 (diff) | |
download | weechat-519f62c11d4c22f4544588a7f8f1ee7acc6a4a7c.zip |
Added "max_height" parameter for bar item rebuild callbacks
Diffstat (limited to 'src/gui/gui-bar-item.c')
-rw-r--r-- | src/gui/gui-bar-item.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/gui/gui-bar-item.c b/src/gui/gui-bar-item.c index 2239486ed..b70286cb5 100644 --- a/src/gui/gui-bar-item.c +++ b/src/gui/gui-bar-item.c @@ -109,7 +109,7 @@ gui_bar_item_new (struct t_weechat_plugin *plugin, char *name, char *(*build_callback)(void *data, struct t_gui_bar_item *item, struct t_gui_window *window, - int max_width), + int max_width, int max_height), void *build_callback_data) { struct t_gui_bar_item *new_bar_item; @@ -249,7 +249,7 @@ gui_bar_item_free_all_plugin (struct t_weechat_plugin *plugin) char * gui_bar_item_default_buffer_count (void *data, struct t_gui_bar_item *item, struct t_gui_window *window, - int max_width) + int max_width, int max_height) { char buf[64]; @@ -258,6 +258,7 @@ gui_bar_item_default_buffer_count (void *data, struct t_gui_bar_item *item, (void) item; (void) window; (void) max_width; + (void) max_height; snprintf (buf, sizeof (buf), "%s[%s%d%s] ", GUI_COLOR(GUI_COLOR_STATUS_DELIMITERS), @@ -275,7 +276,7 @@ gui_bar_item_default_buffer_count (void *data, struct t_gui_bar_item *item, char * gui_bar_item_default_buffer_plugin (void *data, struct t_gui_bar_item *item, struct t_gui_window *window, - int max_width) + int max_width, int max_height) { char buf[64]; @@ -283,6 +284,7 @@ gui_bar_item_default_buffer_plugin (void *data, struct t_gui_bar_item *item, (void) data; (void) item; (void) max_width; + (void) max_height; if (!window) return NULL; @@ -303,7 +305,7 @@ gui_bar_item_default_buffer_plugin (void *data, struct t_gui_bar_item *item, char * gui_bar_item_default_buffer_name (void *data, struct t_gui_bar_item *item, struct t_gui_window *window, - int max_width) + int max_width, int max_height) { char buf[256]; @@ -311,6 +313,7 @@ gui_bar_item_default_buffer_name (void *data, struct t_gui_bar_item *item, (void) data; (void) item; (void) max_width; + (void) max_height; if (!window) return NULL; @@ -336,7 +339,7 @@ gui_bar_item_default_buffer_name (void *data, struct t_gui_bar_item *item, char * gui_bar_item_default_nicklist_count (void *data, struct t_gui_bar_item *item, struct t_gui_window *window, - int max_width) + int max_width, int max_height) { char buf[64]; @@ -344,6 +347,7 @@ gui_bar_item_default_nicklist_count (void *data, struct t_gui_bar_item *item, (void) data; (void) item; (void) max_width; + (void) max_height; if (!window || !window->buffer->nicklist) return NULL; @@ -364,7 +368,7 @@ gui_bar_item_default_nicklist_count (void *data, struct t_gui_bar_item *item, char * gui_bar_item_default_scroll (void *data, struct t_gui_bar_item *item, struct t_gui_window *window, - int max_width) + int max_width, int max_height) { char buf[64]; @@ -372,6 +376,7 @@ gui_bar_item_default_scroll (void *data, struct t_gui_bar_item *item, (void) data; (void) item; (void) max_width; + (void) max_height; if (!window || !window->scroll) return NULL; @@ -390,7 +395,7 @@ gui_bar_item_default_scroll (void *data, struct t_gui_bar_item *item, char * gui_bar_item_default_hotlist (void *data, struct t_gui_bar_item *item, struct t_gui_window *window, - int max_width) + int max_width, int max_height) { char buf[1024], format[32]; struct t_gui_hotlist *ptr_hotlist; @@ -401,6 +406,7 @@ gui_bar_item_default_hotlist (void *data, struct t_gui_bar_item *item, (void) item; (void) window; (void) max_width; + (void) max_height; if (!gui_hotlist) return NULL; |