mirror of
https://github.com/weechat/weechat.git
synced 2026-07-06 23:45:42 +02:00
Add infolists for bars/bar items/bar windows, code cleanup for bars
This commit is contained in:
+217
-85
File diff suppressed because it is too large
Load Diff
@@ -175,9 +175,9 @@ char *
|
||||
script_ptr2str (void *pointer)
|
||||
{
|
||||
char pointer_str[128];
|
||||
|
||||
|
||||
if (!pointer)
|
||||
return strdup ("");
|
||||
return strdup ("0x0");
|
||||
|
||||
snprintf (pointer_str, sizeof (pointer_str),
|
||||
"0x%lx", (long unsigned int)pointer);
|
||||
|
||||
@@ -496,8 +496,7 @@ struct t_weechat_plugin
|
||||
void (*bar_item_update) (const char *name);
|
||||
void (*bar_item_remove) (struct t_gui_bar_item *item);
|
||||
struct t_gui_bar *(*bar_search) (const char *name);
|
||||
struct t_gui_bar *(*bar_new) (struct t_weechat_plugin *plugin,
|
||||
const char *name,
|
||||
struct t_gui_bar *(*bar_new) (const char *name,
|
||||
const char *hidden,
|
||||
const char *priority,
|
||||
const char *type,
|
||||
@@ -1004,12 +1003,12 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin);
|
||||
__filling_left_right, __size, __size_max, \
|
||||
__color_fg, __color_delim, __color_bg, \
|
||||
__separator, __items) \
|
||||
weechat_plugin->bar_new(weechat_plugin, __name, __hidden, \
|
||||
__priority, __type, __condition, \
|
||||
__position, __filling_top_bottom, \
|
||||
__filling_left_right, __size, __size_max, \
|
||||
__color_fg, __color_delim, __color_bg, \
|
||||
__separator, __items)
|
||||
weechat_plugin->bar_new(__name, __hidden, __priority, __type, \
|
||||
__condition, __position, \
|
||||
__filling_top_bottom, __filling_left_right, \
|
||||
__size, __size_max, __color_fg, \
|
||||
__color_delim, __color_bg, __separator, \
|
||||
__items)
|
||||
#define weechat_bar_set(__bar, __property, __value) \
|
||||
weechat_plugin->bar_set(__bar, __property, __value)
|
||||
#define weechat_bar_update(__name) \
|
||||
|
||||
Reference in New Issue
Block a user