Re: [gtk-list] Work on reference counting
- From: Peter Mattis <petm scam XCF Berkeley EDU>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Work on reference counting
- Date: Sun, 13 Jul 1997 14:43:59 -0700
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]