diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-04-03 18:11:32 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-04-03 18:11:32 +0200 |
commit | 48bbd32f123f1212441e909e7892eeec8e97f16e (patch) | |
tree | 10984e928719269d0bd38a895bf03beeec20eb11 /src/core/wee-command.c | |
parent | bab03d044bfceed7e5c9eaaaf3f3ffd61329784c (diff) | |
download | weechat-48bbd32f123f1212441e909e7892eeec8e97f16e.zip |
Bugs fixed with bars
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r-- | src/core/wee-command.c | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c index 12727f1f6..575ed8d71 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -73,12 +73,11 @@ command_bar (void *data, struct t_gui_buffer *buffer, /* make C compiler happy */ (void) data; (void) buffer; - (void) argv_eol; + /* list of bars */ if ((argc == 1) || ((argc == 2) && (string_strcasecmp (argv[1], "list") == 0))) { - /* list of bars */ if (gui_bars) { gui_chat_printf (NULL, ""); @@ -107,8 +106,14 @@ command_bar (void *data, struct t_gui_buffer *buffer, } else gui_chat_printf (NULL, _("No bar defined")); - - /* list of bar items */ + + return WEECHAT_RC_OK; + } + + /* list of bar items */ + if ((argc == 1) + || ((argc == 2) && (string_strcasecmp (argv[1], "listitems") == 0))) + { if (gui_bar_items) { gui_chat_printf (NULL, ""); @@ -2299,8 +2304,8 @@ command_init () hook_command (NULL, "bar", N_("manage bars"), N_("[add barname type position size separator item1,item2,...] " - "| [del barname] | [set barname name|type|position|size|" - "separator|items value] | [list]"), + "| [del barname] | [set barname name|number|position|" + "size|separator|items value] | [list] | [listitems]"), N_(" add: add a new bar\n" " barname: name of bar (must be unique)\n" " type: \"root\" (outside windows), \"window_active\" " @@ -2313,9 +2318,10 @@ command_init () "item1,...: items for this bar\n" " del: delete a bar\n" " set: set a value for a bar property\n" - " list: list all bars"), - "add|del|set|list %r name|type|position|size|separator|" - "items", + " list: list all bars\n" + "listitems: list all bar items"), + "add|del|set|list|listitems %r name|number|position|size|" + "separator|items", &command_bar, NULL); hook_command (NULL, "buffer", N_("manage buffers"), |