summaryrefslogtreecommitdiff
path: root/src/plugins/plugin-api.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/plugin-api.c
parent2c04e9752359a603300d5c32f51a11e700f2f023 (diff)
downloadweechat-9d05dcf175ac6a26a1a263ea490df174f78ffc62.zip
Remove infobar
Diffstat (limited to 'src/plugins/plugin-api.c')
-rw-r--r--src/plugins/plugin-api.c66
1 files changed, 0 insertions, 66 deletions
diff --git a/src/plugins/plugin-api.c b/src/plugins/plugin-api.c
index db7b10dcc..33ca576b2 100644
--- a/src/plugins/plugin-api.c
+++ b/src/plugins/plugin-api.c
@@ -40,7 +40,6 @@
#include "../gui/gui-chat.h"
#include "../gui/gui-color.h"
#include "../gui/gui-filter.h"
-#include "../gui/gui-infobar.h"
#include "../gui/gui-keyboard.h"
#include "../gui/gui-nicklist.h"
#include "../gui/gui-window.h"
@@ -323,63 +322,6 @@ plugin_api_color (const char *color_name)
}
/*
- * plugin_api_infobar_printf: print a message in infobar
- */
-
-void
-plugin_api_infobar_printf (struct t_weechat_plugin *plugin, int delay,
- const char *color_name, const char *format, ...)
-{
- va_list argptr;
- static char buf[1024];
- char *buf2;
- int num_color;
-
- if (!plugin || !format)
- return;
-
- va_start (argptr, format);
- vsnprintf (buf, sizeof (buf) - 1, format, argptr);
- va_end (argptr);
-
- buf2 = string_iconv_to_internal (plugin->charset, buf);
- if (color_name && color_name[0])
- {
- num_color = gui_color_search_config_int (color_name);
- if (num_color < 0)
- num_color = GUI_COLOR_INFOBAR;
- }
- else
- num_color = GUI_COLOR_INFOBAR;
-
- gui_infobar_printf (delay, num_color,
- "%s",
- (buf2) ? buf2 : buf);
- if (buf2)
- free (buf2);
-}
-
-/*
- * plugin_api_infobar_remove: remove message(s) in infobar
- */
-
-void
-plugin_api_infobar_remove (int how_many)
-{
- if (how_many <= 0)
- gui_infobar_remove_all ();
- else
- {
- while ((gui_infobar) && (how_many > 0))
- {
- gui_infobar_remove ();
- how_many--;
- }
- }
- gui_infobar_draw (gui_current_window->buffer, 1);
-}
-
-/*
* plugin_api_command: execute a command (simulate user entry)
*/
@@ -694,14 +636,6 @@ plugin_api_infolist_get_add_window (struct t_plugin_infolist *infolist,
return 0;
if (!plugin_infolist_new_var_integer (ptr_item, "status_height", window->win_status_height))
return 0;
- if (!plugin_infolist_new_var_integer (ptr_item, "infobar_x", window->win_infobar_x))
- return 0;
- if (!plugin_infolist_new_var_integer (ptr_item, "infobar_y", window->win_infobar_y))
- return 0;
- if (!plugin_infolist_new_var_integer (ptr_item, "infobar_width", window->win_infobar_width))
- return 0;
- if (!plugin_infolist_new_var_integer (ptr_item, "infobar_height", window->win_infobar_height))
- return 0;
if (!plugin_infolist_new_var_integer (ptr_item, "input_x", window->win_input_x))
return 0;
if (!plugin_infolist_new_var_integer (ptr_item, "input_y", window->win_input_y))