From 9d05dcf175ac6a26a1a263ea490df174f78ffc62 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 21 Jun 2008 11:49:11 +0200 Subject: Remove infobar --- src/plugins/demo/demo.c | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) (limited to 'src/plugins/demo/demo.c') 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 @@ -106,26 +106,6 @@ demo_printf_command_cb (void *data, struct t_gui_buffer *buffer, int argc, return WEECHAT_RC_OK; } -/* - * 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"), -- cgit v1.2.3