cast attach_info_free() to GDestroyNotify when using it in

2008-05-30  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkmenu.c (get_attach_info): cast attach_info_free() to
	GDestroyNotify when using it in g_object_set_data_full().


svn path=/trunk/; revision=20257
This commit is contained in:
Michael Natterer 2008-05-30 12:12:19 +00:00 committed by Michael Natterer
parent f18bfd0aac
commit bd2b0d30a8
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-05-30 Michael Natterer <mitch@imendio.com>
* gtk/gtkmenu.c (get_attach_info): cast attach_info_free() to
GDestroyNotify when using it in g_object_set_data_full().
2008-05-30 Michael Natterer <mitch@imendio.com>
* gdk/gdkapplaunchcontext.h

View File

@ -280,7 +280,8 @@ get_attach_info (GtkWidget *child)
if (!ai)
{
ai = g_slice_new0 (AttachInfo);
g_object_set_data_full (object, I_(ATTACH_INFO_KEY), ai, attach_info_free);
g_object_set_data_full (object, I_(ATTACH_INFO_KEY), ai,
(GDestroyNotify) attach_info_free);
}
return ai;