Re: Removing One Page from GtkNotebook



Annamalai Gurusami wrote:
Hello All,

In my GTK+ application, I am having a GtkNotebook.  I am adding one
page, with a GtkScrolledWindow as a child, and a GtkHBox as a label.
I remove this page from GtkNotebook.  My question is when I remove
this page from GtkNotebook, are the child widgets destroyed?

If you dont have an explicit reference to the widget in the page
(i.e. the page) then the widget and its children are destroyed.

Cheers,
                                   -Tristan

See:
    http://developer.gnome.org/doc/API/2.0/gtk/GtkObject.html
(desctiption section) for an interesting discussion on
reference counting in GTK+.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]