diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-06-27 17:15:26 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-06-27 17:15:26 +0200 |
commit | 50f8bf0043d3cd6f8bd5af9c2948d7058536dec2 (patch) | |
tree | 82e3c4b1091d241249e4a940d82cee36922420bf /src/plugins/scripts/python | |
parent | c38eac19e399be7ace5281005e19e3eaf1904073 (diff) | |
download | weechat-50f8bf0043d3cd6f8bd5af9c2948d7058536dec2.zip |
Add input bar item, add "hidden" flag for bars, fix some display bugs with bars
Diffstat (limited to 'src/plugins/scripts/python')
-rw-r--r-- | src/plugins/scripts/python/weechat-python-api.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/plugins/scripts/python/weechat-python-api.c b/src/plugins/scripts/python/weechat-python-api.c index 484e3b850..acff1681e 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, *priority, *type, *conditions, *position, *filling, *size; - char *size_max, *color_fg, *color_delim, *color_bg, *separator, *items; - char *result; + char *name, *hidden, *priority, *type, *conditions, *position, *filling; + char *size, *size_max, *color_fg, *color_delim, *color_bg, *separator; + char *items, *result; PyObject *object; /* make C compiler happy */ @@ -3580,6 +3580,7 @@ weechat_python_api_bar_new (PyObject *self, PyObject *args) } name = NULL; + hidden = NULL; priority = NULL; type = NULL; conditions = NULL; @@ -3593,7 +3594,7 @@ weechat_python_api_bar_new (PyObject *self, PyObject *args) separator = NULL; items = NULL; - if (!PyArg_ParseTuple (args, "sssssssssssss", &name, &priority, + if (!PyArg_ParseTuple (args, "ssssssssssssss", &name, &hidden, &priority, &conditions, &type, &position, &filling, &size, &size_max, &color_fg, &color_delim, &color_bg, &separator, &items)) @@ -3603,6 +3604,7 @@ weechat_python_api_bar_new (PyObject *self, PyObject *args) } result = script_ptr2str (weechat_bar_new (name, + hidden, priority, type, conditions, |