Thanks! :)
I wondered why the remove function doesn't work, if it's just the function from
Gtk::Bin and no additional function from the ScrolledWindow class. This is the
solution!
Now that opens up a simple way to work around this, but I think this
still is a misbehaviour and should be fixed. I
This happen because you remove the viewport instead the button in your example
code.
when you call
main_area.add(button_test);
you add a Gtk::Viewport to the scrolled window, the button is then a child of
the viewport.
So after the call to
main_area.remove();
you remove the viewport and the but
** Attachment added: "main.cc"
https://bugs.launchpad.net/bugs/1055744/+attachment/3339066/+files/main.cc
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1055744
Title:
can't remove a widget correc