gtk/gtkblist.h

changeset 15386
2cfff7893ed0
parent 15380
1171796358b3
child 20470
77693555855f
--- a/gtk/gtkblist.h	Fri Jan 12 17:43:25 2007 +0000
+++ b/gtk/gtkblist.h	Fri Jan 12 22:17:32 2007 +0000
@@ -106,6 +106,7 @@
 	GdkPixbuf *headline_close;      /**< Close image for closing the headline without triggering the callback */
 	GCallback headline_callback;    /**< Callback for headline notifications */
 	gpointer headline_data;         /**< User data for headline notifications */
+	GDestroyNotify headline_destroy; /**< Callback to use for destroying the headline-data */
 	gboolean changing_style;        /**< True when changing GTK+ theme style */
 	
 	GtkWidget *error_buttons;        /**< Box containing the connection error buttons */
@@ -340,7 +341,9 @@
  * @param pixbuf    The GdkPixbuf for the icon
  * @param callback  The callback to call when headline is clicked
  * @param user_data The userdata to include in the callback
+ * @param destroy   The callback to call when headline is closed or replaced by another headline.
  */
-void gaim_gtk_blist_set_headline(const char *text, GdkPixbuf *pixbuf, GCallback callback, gpointer user_data);
+void gaim_gtk_blist_set_headline(const char *text, GdkPixbuf *pixbuf, GCallback callback, gpointer user_data,
+		GDestroyNotify destroy);
 
 #endif /* _GAIM_GTKBLIST_H_ */

mercurial