[452] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: Work on reference counting
daemon@ATHENA.MIT.EDU (Peter Mattis)
Sun Jul 13 17:52:39 1997
To: gtk-list@redhat.com
In-reply-to: Your message of "Sun, 13 Jul 1997 16:57:00 EDT."
<Pine.LNX.3.95.970713165235.32669B-100000@lacrosse.redhat.com>
Date: Sun, 13 Jul 1997 14:43:59 -0700
From: Peter Mattis <petm@scam.XCF.Berkeley.EDU>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
Elliot Lee writes:
>Are the container classes supposed to be referencing the objects they
>hold? If so is anyone already working on making reference counting really
>work everywhere? If not would anyone care if I did?
Yes, container classes are supposed to be referencing the objects they
hold. And they are. (I think). Notice how when a child gets added to a
container "gtk_widget_set_parent" is called which calls
"gtk_object_ref". This takes care of 99% of the cases where a child is
added to a parent. Grep for "gtk_object_ref" to find the other
cases. Of course, there might be a few bugs in this code, but it
seemed to work ok when I did some (minimal) testing of it.
Peter
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null