Re: refBuilder->get_widget_derived usage
- From: Kjell Ahlstedt <kjell ahlstedt bredband net>
- To: Markus Kolb <markus kolb+gtkmm tower-net de>
- Cc: gtkmm Mailinglist <gtkmm-list gnome org>
- Subject: Re: refBuilder->get_widget_derived usage
- Date: Sat, 28 Feb 2015 11:19:18 +0100
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]