diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-12-15 22:11:13 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-12-15 22:11:13 +0100 |
commit | e69a3f0f0ef86d4f9c75237b48f7c7fccbe5e4c0 (patch) | |
tree | 5969c345576d9e3537edc8988b7eca85e29fc6cf /src/plugins | |
parent | 507adbe42e3978a4f9685af67e3b2d4267049867 (diff) | |
download | weechat-e69a3f0f0ef86d4f9c75237b48f7c7fccbe5e4c0.zip |
Add new bar filling types: columns_horizontal and columns_vertical
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/irc/irc-bar-item.c | 21 | ||||
-rw-r--r-- | src/plugins/scripts/script-api.c | 4 | ||||
-rw-r--r-- | src/plugins/weechat-plugin.h | 4 |
3 files changed, 6 insertions, 23 deletions
diff --git a/src/plugins/irc/irc-bar-item.c b/src/plugins/irc/irc-bar-item.c index e7946f64d..e5b5522ed 100644 --- a/src/plugins/irc/irc-bar-item.c +++ b/src/plugins/irc/irc-bar-item.c @@ -38,8 +38,7 @@ char * irc_bar_item_buffer_title (void *data, struct t_gui_bar_item *item, - struct t_gui_window *window, - int max_width, int max_height) + struct t_gui_window *window) { struct t_gui_buffer *buffer; const char *title; @@ -48,8 +47,6 @@ irc_bar_item_buffer_title (void *data, struct t_gui_bar_item *item, /* make C compiler happy */ (void) data; (void) item; - (void) max_width; - (void) max_height; if (!window) window = weechat_current_window (); @@ -76,8 +73,7 @@ irc_bar_item_buffer_title (void *data, struct t_gui_bar_item *item, char * irc_bar_item_buffer_name (void *data, struct t_gui_bar_item *item, - struct t_gui_window *window, - int max_width, int max_height) + struct t_gui_window *window) { char buf[512], buf_name[256], modes[128], away[128]; const char *name; @@ -89,8 +85,6 @@ irc_bar_item_buffer_name (void *data, struct t_gui_bar_item *item, /* make C compiler happy */ (void) data; (void) item; - (void) max_width; - (void) max_height; if (!window) window = weechat_current_window (); @@ -196,8 +190,7 @@ irc_bar_item_buffer_name (void *data, struct t_gui_bar_item *item, char * irc_bar_item_lag (void *data, struct t_gui_bar_item *item, - struct t_gui_window *window, - int max_width, int max_height) + struct t_gui_window *window) { char buf[32]; struct t_gui_buffer *buffer; @@ -206,9 +199,6 @@ irc_bar_item_lag (void *data, struct t_gui_bar_item *item, /* make C compiler happy */ (void) data; (void) item; - (void) window; - (void) max_width; - (void) max_height; buffer = weechat_window_get_pointer (window, "buffer"); @@ -236,8 +226,7 @@ irc_bar_item_lag (void *data, struct t_gui_bar_item *item, char * irc_bar_item_input_prompt (void *data, struct t_gui_bar_item *item, - struct t_gui_window *window, - int max_width, int max_height) + struct t_gui_window *window) { struct t_gui_buffer *buffer; struct t_irc_server *server; @@ -247,8 +236,6 @@ irc_bar_item_input_prompt (void *data, struct t_gui_bar_item *item, /* make C compiler happy */ (void) data; (void) item; - (void) max_width; - (void) max_height; if (!window) window = weechat_current_window (); diff --git a/src/plugins/scripts/script-api.c b/src/plugins/scripts/script-api.c index 62e19e9a3..0e07965f7 100644 --- a/src/plugins/scripts/script-api.c +++ b/src/plugins/scripts/script-api.c @@ -1230,9 +1230,7 @@ script_api_bar_item_new (struct t_weechat_plugin *weechat_plugin, const char *name, char *(*build_callback)(void *data, struct t_gui_bar_item *item, - struct t_gui_window *window, - int max_width, - int max_height), + struct t_gui_window *window), const char *function_build) { struct t_script_callback *new_script_callback; diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h index 3a07ae3e4..3513eca52 100644 --- a/src/plugins/weechat-plugin.h +++ b/src/plugins/weechat-plugin.h @@ -489,9 +489,7 @@ struct t_weechat_plugin const char *name, char *(*build_callback)(void *data, struct t_gui_bar_item *item, - struct t_gui_window *window, - int max_width, - int max_height), + struct t_gui_window *window), void *build_callback_data); void (*bar_item_update) (const char *name); void (*bar_item_remove) (struct t_gui_bar_item *item); |