diff src/gtkconv.h @ 9759:b64ee81c7bcb

[gaim-migrate @ 10626] A patch from Good Stu to make the gaim_gtkconv_button_new() function public, which lets plugin authors use it. Plugin authors should use it to create a button to be added to conversation windows. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 15 Aug 2004 23:09:53 +0000
parents 78022bad9367
children 4a15962c344a
line wrap: on
line diff
--- a/src/gtkconv.h	Sun Aug 15 23:07:54 2004 +0000
+++ b/src/gtkconv.h	Sun Aug 15 23:09:53 2004 +0000
@@ -252,6 +252,22 @@
 void gaim_gtkconv_update_buttons_by_protocol(GaimConversation *conv);
 
 /**
+ * Creates a conversation button
+ *
+ * @param icon     The stock icon name.
+ * @param text     The text for the button.
+ * @param tooltip  The tooltip text.
+ * @param tooltips The group of tooltips.
+ * @param callback A function to call when the button is clicked.
+ * @param data     Data to pass to the callback.
+ *
+ * @return The button
+ */
+GtkWidget *gaim_gtkconv_button_new(const char *icon, const char *text,
+								   const char *tooltip, GtkTooltips *tooltips,
+								   void *callback, void *data);
+
+/**
  * Returns the window at the specified X, Y location.
  *
  * If the window is not a GTK+ window, @c NULL is returned.