Your guess is correct. The box is deleted when the builder is deleted.
The description of Gtk::Builder describes quite well what happens, and
what you must do in order to use the box after the builder is deleted.
In short: Add the box to a container widget before the builder is deleted.
https://developer.gnome.org/gtkmm/stable/classGtk_1_1Builder.html#details
Den 2015-02-28 10:47, Markus Kolb skrev:
Hi,
I'm currently stuck and need your help...
I'd like to "load" a child Box from a glade-file to a derived class.
But on usage of the ContainerServer* returned by static
ContainerServer* create(),
I get a segv:
p_notebook_game->append_page(*p_container_server, _("Server"));
Needs the refBuilder be available and isn't it possible to hide it?
So does the *p_cs get deleted when refBuilder gets deleted?
Or why this doesn't work?
How to do it? The examples only "load" main-dialogs.
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list