Gtk, Does deleting builder pointer deletes all the Widgets created using it.

Posted by PP on Stack Overflow See other posts from Stack Overflow or by PP
Published on 2010-05-03T08:15:47Z Indexed on 2010/05/03 8:18 UTC
Read the original article Hit count: 218

Filed under:
|

I am creating builder pointer as follows.

GtkBuilder *builder_ptr;
builder_ptr = gtk_builder_new();
if( ! gtk_builder_add_from_file(builder_ptr, "Test.glade", &error ) )
    printf("\n Error Builder, Exit!\n");

and i am deleting this builder pointer as follows:

g_object_unref(G_OBJECT(m_builder));

this builder pointer contains 2-3 GtkWindows and other widgets.
So my question is that do i need to delete all the windows in this builder manually when i delete this builder or all the windows will get destroyed when i delete builder pointer.

Thanks,
PP.

© Stack Overflow or respective owner

Related posts about gtk

Related posts about gtk+