1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 12:56:37 +02:00

Added new plugin API function: remove_infobar

This commit is contained in:
Sebastien Helleu
2006-02-20 17:01:18 +00:00
parent e0c97562a5
commit 9373a7a47e
24 changed files with 626 additions and 10 deletions
+23
View File
@@ -214,6 +214,29 @@ weechat_plugin_print_infobar (t_weechat_plugin *plugin, int time_displayed, char
gui_infobar_printf (time_displayed, COLOR_WIN_INFOBAR, "%s", buf);
}
/*
* weechat_plugin_infobar_remove: remove message(s) in infobar
*/
void
weechat_plugin_infobar_remove (t_weechat_plugin *plugin, int how_many)
{
if (!plugin)
return;
if (how_many <= 0)
gui_infobar_remove_all ();
else
{
while ((gui_infobar) && (how_many > 0))
{
gui_infobar_remove ();
how_many--;
}
}
gui_draw_buffer_infobar (gui_current_window->buffer, 1);
}
/*
* weechat_plugin_log: add a message on logs
*/