Mercurial > pidgin
diff gtk/gtkblist.h @ 15324: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 |
line wrap: on
line diff
--- 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_ */