Re: [gnomemm] Using libglademm



> 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



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