summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-02-04 12:38:37 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-02-04 12:38:37 +0100
commitaeb11f7e05ede4453552a1fac6895da6e8f6084f (patch)
treef1b33ac810df309c9ac5cd1da4cee4816c40fd04
parent2320ef2214aa71e92cfd0ee5a03a622043bdf05c (diff)
downloadweechat-aeb11f7e05ede4453552a1fac6895da6e8f6084f.zip
Remove obsolete arguments in bar item callback, in tcl plugin
-rw-r--r--src/plugins/scripts/tcl/weechat-tcl-api.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/plugins/scripts/tcl/weechat-tcl-api.c b/src/plugins/scripts/tcl/weechat-tcl-api.c
index 711be2e16..cf68dc255 100644
--- a/src/plugins/scripts/tcl/weechat-tcl-api.c
+++ b/src/plugins/scripts/tcl/weechat-tcl-api.c
@@ -4452,23 +4452,16 @@ weechat_tcl_api_bar_item_search (ClientData clientData, Tcl_Interp *interp,
char *
weechat_tcl_api_bar_item_build_cb (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_script_callback *script_callback;
- char *tcl_argv[5], *ret;
- static char str_width[32], str_height[32];
+ char *tcl_argv[3], *ret;
script_callback = (struct t_script_callback *)data;
- snprintf (str_width, sizeof (str_width), "%d", max_width);
- snprintf (str_height, sizeof (str_height), "%d", max_height);
-
tcl_argv[0] = script_ptr2str (item);
tcl_argv[1] = script_ptr2str (window);
- tcl_argv[2] = str_width;
- tcl_argv[3] = str_height;
- tcl_argv[4] = NULL;
+ tcl_argv[2] = NULL;
ret = (char *)weechat_tcl_exec (script_callback->script,
WEECHAT_SCRIPT_EXEC_STRING,