Re: [gtkmm] Removing a widget from a container temporarily



Samuel wrote:
hpaned->remove(*viewport1);
hpaned->remove(*viewport2);
table->remove(*hpaned);
table->attach(*viewport1, 0, 1, 0, 1, Gtk::FILL, Gtk::FILL, 0, 0);
------------------

This segfaults at "table->attach":

I think if you just call viewport1->reference(); before the remove you will be OK.
--
Tor Arvid Lund



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