X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftags%2Fstable%2Fsrc%2Fgtkmm%2Fdockbook.cpp;h=62047f7856498e84610ac4418cab1eb8c4cf0b55;hb=47fce282611fbba1044921d22ca887f9b53ad91a;hp=a7470f9ff3afd4d6aa9be11b378a15f2b2beaca5;hpb=4cb5360f578f79e5d9e234570018d762ea0a964f;p=synfig.git diff --git a/synfig-studio/tags/stable/src/gtkmm/dockbook.cpp b/synfig-studio/tags/stable/src/gtkmm/dockbook.cpp index a7470f9..62047f7 100644 --- a/synfig-studio/tags/stable/src/gtkmm/dockbook.cpp +++ b/synfig-studio/tags/stable/src/gtkmm/dockbook.cpp @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2007 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -38,6 +39,8 @@ #include #include +#include "general.h" + #endif /* === U S I N G =========================================================== */ @@ -79,9 +82,7 @@ void DockBook::clear() { while(get_n_pages()) - { remove(static_cast(*get_nth_page(get_n_pages()-1))); - } } void @@ -240,6 +241,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"),