Re: keeping removed widget
- From: Guillaume Brocker <guillaume brocker digital-trainers com>
- To: gafferuk <gafferuk gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: keeping removed widget
- Date: Wed, 02 Dec 2009 15:50:17 +0100
Hi !
In the code sample you provide, there is no apparent reason explaining
that your program crashes.
There is one thing you should ensure : the pointer passed to box->add
and the one passed later to box->remove should both point to the same
address.
Guillaume
Le 02/12/2009 11:54, gafferuk a écrit :
hi, for example i have a vbox and a button.
heres the code:
Gtk::VBox *box = new Gtk::VBox();
Gtk::Button *button - new Gtk::Button();
box->add(*button);
later on i wish to remove this button but i wish to keep it to be used later
on.
if i simple goes box->remove(*button) my app simply crashes.
what am i doing wrong?
thanks.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]