comparison gtk/gtkblist.h @ 15325:e3ea20c6e73f

[gaim-migrate @ 18115] Add a destroy-notify function for the blist-headline. If you close a headline by clicking the cross, or if some headline is replaced by another one, this is not going to leak anymore. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 12 Jan 2007 22:17:32 +0000
parents b17a907065cc
children
comparison
equal deleted inserted replaced
15324:99dcbb8c4557 15325:e3ea20c6e73f
104 GtkWidget *headline_label; /**< Label for headline notifications */ 104 GtkWidget *headline_label; /**< Label for headline notifications */
105 GtkWidget *headline_image; /**< Image for headline notifications */ 105 GtkWidget *headline_image; /**< Image for headline notifications */
106 GdkPixbuf *headline_close; /**< Close image for closing the headline without triggering the callback */ 106 GdkPixbuf *headline_close; /**< Close image for closing the headline without triggering the callback */
107 GCallback headline_callback; /**< Callback for headline notifications */ 107 GCallback headline_callback; /**< Callback for headline notifications */
108 gpointer headline_data; /**< User data for headline notifications */ 108 gpointer headline_data; /**< User data for headline notifications */
109 GDestroyNotify headline_destroy; /**< Callback to use for destroying the headline-data */
109 gboolean changing_style; /**< True when changing GTK+ theme style */ 110 gboolean changing_style; /**< True when changing GTK+ theme style */
110 111
111 GtkWidget *error_buttons; /**< Box containing the connection error buttons */ 112 GtkWidget *error_buttons; /**< Box containing the connection error buttons */
112 GtkWidget *statusbox; /**< The status selector dropdown */ 113 GtkWidget *statusbox; /**< The status selector dropdown */
113 }; 114 };
338 * 339 *
339 * @param text Pango Markup for the label text 340 * @param text Pango Markup for the label text
340 * @param pixbuf The GdkPixbuf for the icon 341 * @param pixbuf The GdkPixbuf for the icon
341 * @param callback The callback to call when headline is clicked 342 * @param callback The callback to call when headline is clicked
342 * @param user_data The userdata to include in the callback 343 * @param user_data The userdata to include in the callback
343 */ 344 * @param destroy The callback to call when headline is closed or replaced by another headline.
344 void gaim_gtk_blist_set_headline(const char *text, GdkPixbuf *pixbuf, GCallback callback, gpointer user_data); 345 */
346 void gaim_gtk_blist_set_headline(const char *text, GdkPixbuf *pixbuf, GCallback callback, gpointer user_data,
347 GDestroyNotify destroy);
345 348
346 #endif /* _GAIM_GTKBLIST_H_ */ 349 #endif /* _GAIM_GTKBLIST_H_ */