Send unmap event when removing a widget
authorRobin Gareus <robin@gareus.org>
Sun, 16 Apr 2017 23:46:27 +0000 (01:46 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 16 Apr 2017 23:46:27 +0000 (01:46 +0200)
This fixes a crash when hiding an ArdourCanvas Item VCA which
is about to display a tooltip.

libs/gtkmm2ext/utils.cc

index c18023e02008d7429b8d0c5fa24979cbe966b404..e16a9e251e256a8db6da45a4fa7ef44ebf56089f 100644 (file)
@@ -631,6 +631,7 @@ Gtkmm2ext::container_clear (Gtk::Container& c)
 {
         list<Gtk::Widget*> children = c.get_children();
         for (list<Gtk::Widget*>::iterator child = children.begin(); child != children.end(); ++child) {
+                (*child)->hide ();
                 c.remove (**child);
         }
 }