X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fdockbook.cpp;h=5d1a4601679e0024db886c49d51fed72a16dd7a7;hb=c9ad0cc10b6d9fd5fb15cb662308402a44509215;hp=21ed82f00b9fc32d7e68168bc24c91a242addf93;hpb=38de53e66bb6bf1b84f628aea1b5e957550134cb;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/dockbook.cpp b/synfig-studio/trunk/src/gtkmm/dockbook.cpp index 21ed82f..5d1a460 100644 --- a/synfig-studio/trunk/src/gtkmm/dockbook.cpp +++ b/synfig-studio/trunk/src/gtkmm/dockbook.cpp @@ -38,6 +38,8 @@ #include #include +#include "general.h" + #endif /* === U S I N G =========================================================== */ @@ -238,6 +240,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"),