g++ 4.2 didn't like my last change.
[synfig.git] / synfig-studio / trunk / src / gtkmm / dock_timetrack.cpp
index fe73d83..8b1e312 100644 (file)
@@ -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
@@ -43,6 +44,8 @@
 #include "workarea.h"
 #include "widget_timeslider.h"
 #include "layerparamtreestore.h"
+#include "general.h"
+
 #endif
 
 /* === U S I N G =========================================================== */
@@ -176,11 +179,13 @@ public:
                                                {
                                                        synfigapp::ValueDesc value_desc(row[model.value_desc]);
                                                        Gtk::Menu* menu(manage(new Gtk::Menu()));
+                                                       menu->signal_hide().connect(sigc::bind(sigc::ptr_fun(&delete_widget), menu));
                                                        App::get_instance(param_tree_store_->canvas_interface()->get_canvas())->make_param_menu(menu,param_tree_store_->canvas_interface()->get_canvas(),value_desc,0.5f);
                                                        menu->popup(event->button.button,gtk_get_current_event_time());
                                                        return true;
                                                }
                                                Gtk::Menu* menu(manage(new Gtk::Menu()));
+                                               menu->signal_hide().connect(sigc::bind(sigc::ptr_fun(&delete_widget), menu));
                                                std::list<synfigapp::ValueDesc> value_desc_list;
                                                ParamDesc param_desc(row[model.param_desc]);
                                                for(;!layer_list.empty();layer_list.pop_back())
@@ -360,7 +365,7 @@ public:
        }
 
        void
-       on_waypoint_clicked(const Glib::ustring &path_string, synfig::Waypoint waypoint,int button)
+       on_waypoint_clicked(const Glib::ustring &/*path_string*/, synfig::Waypoint waypoint,int button)
        {
 /*
                Gtk::TreePath path(path_string);