X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fdockbook.cpp;h=62047f7856498e84610ac4418cab1eb8c4cf0b55;hb=de6b5bb9824313ddedc0fb5e3b4bdaae2ff09882;hp=290d48f4d81ecc3840ec4718f980d86b92fd0b60;hpb=c34eaa5441242b3e9a7b7645e9ee4983d14eae85;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/dockbook.cpp b/synfig-studio/trunk/src/gtkmm/dockbook.cpp index 290d48f..62047f7 100644 --- a/synfig-studio/trunk/src/gtkmm/dockbook.cpp +++ b/synfig-studio/trunk/src/gtkmm/dockbook.cpp @@ -2,10 +2,11 @@ /*! \file dockbook.cpp ** \brief Template File ** -** $Id: dockbook.cpp,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $ +** $Id$ ** ** \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"),