Re: Using libglademm

[email protected] Tue, 20 Jul 2004 23:51:33 -0700 (PDT)
Newsgroups gmane.comp.gnome.gnomemm
Message-ID <[email protected]>
> Hi,
>
> If I get a widget using get_widget_derived, how do I destroy that
> widget? Using C++ delete? That seems to cause a segfault at some point
> (although not with all my derived widgets). If I don't use 'delete' the
> destructors are never called.

Child widgets from glade are managed, so you don't need to delete them if
you put them in a container. Top-level widgets (windows) need to be
deleted.

I added information about this to the book chapter recently:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch19s02.html