 |
| Never Seen the Sunlight |
Joined: Wed Sep 21, 2005 3:07 am Posts: 384 Location: Fairfax, Virginia
|
|
gtk_notebook_remove_page() calls gtk_container_remove(). This function will _usually_ destroy the child widget, but not always. It simply decreases the reference count of the GObject. If that is the last reference to the widget, then it will be destroyed. This is useful because you can use g_object_ref() to add a reference count to an object so that it can be added to a different part of the UI after it is removed from its original container.
Reference counting is some cool beans ...
_________________ Andrew Krause
Foundations of GTK+ Development: Buy now for only $31.49!
|
|