From f93837d5c891385f54b83ab62bd05f1b001812a3 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Thu, 10 Jul 2008 17:53:22 +0200 Subject: Split "filling" bar value into "filling_top_bottom" and "filling_left_right" to have a filling specific to top/bottom bars (vs left/right bars) --- src/plugins/scripts/python/weechat-python-api.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'src/plugins/scripts/python/weechat-python-api.c') diff --git a/src/plugins/scripts/python/weechat-python-api.c b/src/plugins/scripts/python/weechat-python-api.c index acff1681e..755e16300 100644 --- a/src/plugins/scripts/python/weechat-python-api.c +++ b/src/plugins/scripts/python/weechat-python-api.c @@ -3565,9 +3565,9 @@ weechat_python_api_bar_search (PyObject *self, PyObject *args) static PyObject * weechat_python_api_bar_new (PyObject *self, PyObject *args) { - char *name, *hidden, *priority, *type, *conditions, *position, *filling; - char *size, *size_max, *color_fg, *color_delim, *color_bg, *separator; - char *items, *result; + char *name, *hidden, *priority, *type, *conditions, *position; + char *filling_top_bottom, *filling_left_right, *size, *size_max; + char *color_fg, *color_delim, *color_bg, *separator, *items, *result; PyObject *object; /* make C compiler happy */ @@ -3585,7 +3585,8 @@ weechat_python_api_bar_new (PyObject *self, PyObject *args) type = NULL; conditions = NULL; position = NULL; - filling = NULL; + filling_top_bottom = NULL; + filling_left_right = NULL; size = NULL; size_max = NULL; color_fg = NULL; @@ -3594,10 +3595,10 @@ weechat_python_api_bar_new (PyObject *self, PyObject *args) separator = NULL; items = NULL; - if (!PyArg_ParseTuple (args, "ssssssssssssss", &name, &hidden, &priority, - &conditions, &type, &position, &filling, &size, - &size_max, &color_fg, &color_delim, &color_bg, - &separator, &items)) + if (!PyArg_ParseTuple (args, "sssssssssssssss", &name, &hidden, &priority, + &conditions, &type, &position, &filling_top_bottom, + &filling_left_right, &size, &size_max, &color_fg, + &color_delim, &color_bg, &separator, &items)) { WEECHAT_SCRIPT_MSG_WRONG_ARGUMENTS("bar_new"); PYTHON_RETURN_EMPTY; @@ -3609,7 +3610,8 @@ weechat_python_api_bar_new (PyObject *self, PyObject *args) type, conditions, position, - filling, + filling_top_bottom, + filling_left_right, size, size_max, color_fg, -- cgit v1.2.3