summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/perl
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-02-04 12:38:03 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-02-04 12:38:03 +0100
commit2320ef2214aa71e92cfd0ee5a03a622043bdf05c (patch)
treef35440763d74048326c86b08106bdffcf7124149 /src/plugins/scripts/perl
parent0904715603c5a618bba1a1db37e8ec0d2989b204 (diff)
downloadweechat-2320ef2214aa71e92cfd0ee5a03a622043bdf05c.zip
Remove obsolete arguments in bar item callback, in script plugins
Diffstat (limited to 'src/plugins/scripts/perl')
-rw-r--r--src/plugins/scripts/perl/weechat-perl-api.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/plugins/scripts/perl/weechat-perl-api.c b/src/plugins/scripts/perl/weechat-perl-api.c
index faca5fcec..f1fe74c6b 100644
--- a/src/plugins/scripts/perl/weechat-perl-api.c
+++ b/src/plugins/scripts/perl/weechat-perl-api.c
@@ -3929,23 +3929,16 @@ static XS (XS_weechat_api_bar_item_search)
char *
weechat_perl_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 *perl_argv[5], *ret;
- static char str_width[32], str_height[32];
+ char *perl_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);
-
perl_argv[0] = script_ptr2str (item);
perl_argv[1] = script_ptr2str (window);
- perl_argv[2] = str_width;
- perl_argv[3] = str_height;
- perl_argv[4] = NULL;
+ perl_argv[2] = NULL;
ret = (char *)weechat_perl_exec (script_callback->script,
WEECHAT_SCRIPT_EXEC_STRING,