diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-06-21 18:59:54 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-06-21 18:59:54 +0200 |
commit | b0ecbdbf1da175802d3e2f82cf181060886247e3 (patch) | |
tree | 28f18dcad3ab64bd2b15bd8cf92bb63fb66654ed /src/plugins/perl/weechat-perl-api.c | |
parent | 5b151d1639f4656f79b92b7b495251b51bc10d1d (diff) | |
download | weechat-b0ecbdbf1da175802d3e2f82cf181060886247e3.zip |
core: add bar option "color_bg_inactive" (issue #732)
Diffstat (limited to 'src/plugins/perl/weechat-perl-api.c')
-rw-r--r-- | src/plugins/perl/weechat-perl-api.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/plugins/perl/weechat-perl-api.c b/src/plugins/perl/weechat-perl-api.c index 62ad7961d..d9fc273af 100644 --- a/src/plugins/perl/weechat-perl-api.c +++ b/src/plugins/perl/weechat-perl-api.c @@ -4130,12 +4130,12 @@ API_FUNC(bar_new) { char *name, *hidden, *priority, *type, *conditions, *position; char *filling_top_bottom, *filling_left_right, *size, *size_max, *color_fg; - char *color_delim, *color_bg, *separator, *bar_items; + char *color_delim, *color_bg, *color_bg_inactive, *separator, *bar_items; const char *result; dXSARGS; API_INIT_FUNC(1, "bar_new", API_RETURN_EMPTY); - if (items < 15) + if (items < 16) API_WRONG_ARGS(API_RETURN_EMPTY); name = SvPV_nolen (ST (0)); @@ -4151,8 +4151,9 @@ API_FUNC(bar_new) color_fg = SvPV_nolen (ST (10)); color_delim = SvPV_nolen (ST (11)); color_bg = SvPV_nolen (ST (12)); - separator = SvPV_nolen (ST (13)); - bar_items = SvPV_nolen (ST (14)); + color_bg_inactive = SvPV_nolen (ST (13)); + separator = SvPV_nolen (ST (14)); + bar_items = SvPV_nolen (ST (15)); result = API_PTR2STR(weechat_bar_new (name, hidden, @@ -4167,6 +4168,7 @@ API_FUNC(bar_new) color_fg, color_delim, color_bg, + color_bg_inactive, separator, bar_items)); |