1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 11:43:13 +02:00

Added filling/color_fg/color_bg options for bars, added config_get/config_get_plugin/config_set_plugin in script API

This commit is contained in:
Sebastien Helleu
2008-04-24 12:18:26 +02:00
parent a5e5ab6e48
commit ab6684c60a
27 changed files with 1297 additions and 423 deletions
+8 -5
View File
@@ -377,8 +377,9 @@ struct t_weechat_plugin
struct t_gui_bar *(*bar_search) (char *name);
struct t_gui_bar *(*bar_new) (struct t_weechat_plugin *plugin, char *name,
char *type, char *condition, char *position,
char *size, char *size_max, char *separator,
char *items);
char *filling, char *size, char *size_max,
char *color_fg, char *color_bg,
char *separator, char *items);
int (*bar_set) (struct t_gui_bar *bar, char *property, char *value);
void (*bar_update) (char *name);
void (*bar_remove) (struct t_gui_bar *bar);
@@ -773,10 +774,12 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin);
#define weechat_bar_search(__name) \
weechat_plugin->bar_search(__name)
#define weechat_bar_new(__name, __type, __condition, __position, \
__size, __size_max, __separator, __items) \
__filling, __size, __size_max, __color_fg, \
__color_bg, __separator, __items) \
weechat_plugin->bar_new(weechat_plugin, __name, __type, \
__condition, __position, __size, \
__size_max, __separator, __items)
__condition, __position, __filling, __size, \
__size_max, __color_fg, __color_bg, \
__separator, __items)
#define weechat_bar_set(__bar, __property, __value) \
weechat_plugin->bar_set(__bar, __property, __value)
#define weechat_bar_update(__name) \