RE: Glade and GLADE_HOOKUP_OBJECT
- From: Jacob Kolding <jacob omnia dk>
- To: gtk <gtk-app-devel-list gnome org>
- Subject: RE: Glade and GLADE_HOOKUP_OBJECT
- Date: Mon, 13 Oct 2003 16:37:19 +0200
--- Begin Message ---
- From: "Tom Liu" <tom liu flextrade com>
- To: "'Jacob Kolding'" <jacob omnia dk>
- Subject: RE: Glade and GLADE_HOOKUP_OBJECT
- Date: Mon, 13 Oct 2003 09:26:24 -0400
This is what I want to know also.
In the tutorial, no example using this ref/unref code.
Maybe Glade just want to play it safe?!
-----Original Message-----
From: gtk-app-devel-list-admin gnome org
[mailto:gtk-app-devel-list-admin gnome org] On Behalf Of Jacob Kolding
Sent: Sunday, October 12, 2003 5:07 PM
To: gtk
Subject: Glade and GLADE_HOOKUP_OBJECT
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?
/Jacob Kolding
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--- End Message ---
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]