Comment 2 for bug 1055744

hermann meyer (brummer10) wrote :

This happen because you remove the viewport instead the button in your example code.
when you call
you add a Gtk::Viewport to the scrolled window, the button is then a child of the viewport.
So after the call to
you remove the viewport and the button is still a child of the viewport.