X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fmod_palette%2Fdock_paledit.cpp;h=fcafe64fbe1eaea65bcf5bd115d328c9f7ce4a7a;hb=59fbbc9b2d99809f56f9812c07fadf395efbba82;hp=1653a19cf4f83ba65c029746027a58bec5dd5dbd;hpb=0587249d6cebf3b80554f6e95adefcaab2747390;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/mod_palette/dock_paledit.cpp b/synfig-studio/trunk/src/gtkmm/mod_palette/dock_paledit.cpp index 1653a19..fcafe64 100644 --- a/synfig-studio/trunk/src/gtkmm/mod_palette/dock_paledit.cpp +++ b/synfig-studio/trunk/src/gtkmm/mod_palette/dock_paledit.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 @@ -44,6 +45,8 @@ #include "../app.h" #include "../dialog_color.h" +#include "../general.h" + #endif /* === U S I N G =========================================================== */ @@ -187,6 +190,7 @@ void Dock_PalEdit::show_menu(int i) { Gtk::Menu* menu(manage(new Gtk::Menu())); + menu->signal_hide().connect(sigc::bind(sigc::ptr_fun(&delete_widget), menu)); menu->items().push_back(Gtk::Menu_Helpers::StockMenuElem(Gtk::StockID("gtk-select-color"), sigc::bind(