Glade and GLADE_HOOKUP_OBJECT
- From: Jacob Kolding <jacob omnia dk>
- To: gtk <gtk-app-devel-list gnome org>
- Subject: Glade and GLADE_HOOKUP_OBJECT
- Date: Sun, 12 Oct 2003 23:06:50 +0200
I'm in the process of moving my gui code away from glade
(when interface.c reaches 3000 lines the fun stops)
and I was wondering about GLADE_HOOKUP_OBJECT:
#define GLADE_HOOKUP_OBJECT(component,widget,name) \
g_object_set_data_full (G_OBJECT (component), name, \
gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
which is called on most widgets that glade creates.
Is this really necessary? What is the reason for all this
ref/unref stuff, shouldn't gtk_widget_destroy be enough?
] [Thread Prev