From: dooglus Date: Tue, 30 Oct 2007 09:05:25 +0000 (+0000) Subject: Missed this one in the previous commit. Right-click on dock tabs creates a menu... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ace849d3f0538fb8ca9c4cf892751534724919cd;p=synfig.git Missed this one in the previous commit. Right-click on dock tabs creates a menu that wasn't ever being deleted. git-svn-id: http://svn.voria.com/code@1000 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/dockbook.cpp b/synfig-studio/trunk/src/gtkmm/dockbook.cpp index 21ed82f..a7f0b6a 100644 --- a/synfig-studio/trunk/src/gtkmm/dockbook.cpp +++ b/synfig-studio/trunk/src/gtkmm/dockbook.cpp @@ -238,6 +238,7 @@ DockBook::tab_button_pressed(GdkEventButton* event, Dockable* dockable) return false; Gtk::Menu *tabmenu=manage(new class Gtk::Menu()); + tabmenu->signal_hide().connect(sigc::bind(sigc::ptr_fun(&delete_widget), tabmenu)); tabmenu->items().push_back( Gtk::Menu_Helpers::StockMenuElem(Gtk::StockID("gtk-close"),