summaryrefslogtreecommitdiff
path: root/src/plugins/demo/demo.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-06-21 11:49:11 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-06-21 11:49:11 +0200
commit9d05dcf175ac6a26a1a263ea490df174f78ffc62 (patch)
tree7cba0b34e51f7a337a87a73c9752e4acf17659aa /src/plugins/demo/demo.c
parent2c04e9752359a603300d5c32f51a11e700f2f023 (diff)
downloadweechat-9d05dcf175ac6a26a1a263ea490df174f78ffc62.zip
Remove infobar
Diffstat (limited to 'src/plugins/demo/demo.c')
-rw-r--r--src/plugins/demo/demo.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/src/plugins/demo/demo.c b/src/plugins/demo/demo.c
index 50deeae5e..cf7ea2dc3 100644
--- a/src/plugins/demo/demo.c
+++ b/src/plugins/demo/demo.c
@@ -107,26 +107,6 @@ demo_printf_command_cb (void *data, struct t_gui_buffer *buffer, int argc,
}
/*
- * demo_infobar_command_cb: demo command for infobar
- */
-
-int
-demo_infobar_command_cb (void *data, struct t_gui_buffer *buffer, int argc,
- char **argv, char **argv_eol)
-{
- /* make C compiler happy */
- (void) data;
- (void) buffer;
- (void) argv;
-
- weechat_infobar_printf (10, NULL,
- (argc > 1) ?
- argv_eol[1] : _("test message in infobar"));
-
- return WEECHAT_RC_OK;
-}
-
-/*
* demo_buffer_input_data_cb: callback for input data on buffer
*/
@@ -419,14 +399,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
_("text: write this text"),
"",
&demo_printf_command_cb, NULL);
-
- weechat_hook_command ("demo_infobar",
- _("print a message in infobar for 10 seconds"),
- _("[text]"),
- _("text: write this text"),
- "",
- &demo_infobar_command_cb, NULL);
-
+
weechat_hook_command ("demo_buffer",
_("open a new buffer"),
_("category name"),