Removed a bunch more DEBUGPOINT()s.
[synfig.git] / synfig-studio / trunk / src / gtkmm / state_normal.cpp
index e92c568..26dc853 100644 (file)
@@ -2,7 +2,7 @@
 /*!    \file state_normal.cpp
 **     \brief Template File
 **
-**     $Id: state_normal.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
@@ -41,6 +41,8 @@
 #include <synfig/valuenode_composite.h>
 #include <synfig/valuenode_const.h>
 #include "canvasview.h"
+#include "general.h"
+
 #endif
 
 /* === U S I N G =========================================================== */
@@ -119,7 +121,7 @@ StateNormal::~StateNormal()
 StateNormal_Context::StateNormal_Context(CanvasView *canvas_view):
        canvas_view(canvas_view)
 {
-       synfig::info("Enterted Normal State");
+       synfig::info("Entered Normal State");
 }
 
 StateNormal_Context::~StateNormal_Context()
@@ -135,14 +137,14 @@ StateNormal_Context::refresh_tool_options()
 }
 
 Smach::event_result
-StateNormal_Context::event_refresh_tool_options(const Smach::event& x)
+StateNormal_Context::event_refresh_tool_options(const Smach::event& /*x*/)
 {
        refresh_tool_options();
        return Smach::RESULT_ACCEPT;
 }
 
 Smach::event_result
-StateNormal_Context::event_stop_handler(const Smach::event& x)
+StateNormal_Context::event_stop_handler(const Smach::event& /*x*/)
 {
        synfig::info("STATE NORMAL: Received Stop Event");
        canvas_view->stop();
@@ -150,7 +152,7 @@ StateNormal_Context::event_stop_handler(const Smach::event& x)
 }
 
 Smach::event_result
-StateNormal_Context::event_refresh_handler(const Smach::event& x)
+StateNormal_Context::event_refresh_handler(const Smach::event& /*x*/)
 {
        synfig::info("STATE NORMAL: Received Refresh Event");
        canvas_view->rebuild_tables();
@@ -159,7 +161,7 @@ StateNormal_Context::event_refresh_handler(const Smach::event& x)
 }
 
 Smach::event_result
-StateNormal_Context::event_refresh_ducks_handler(const Smach::event& x)
+StateNormal_Context::event_refresh_ducks_handler(const Smach::event& /*x*/)
 {
        synfig::info("STATE NORMAL: Received Refresh Ducks");
        canvas_view->queue_rebuild_ducks();
@@ -167,7 +169,7 @@ StateNormal_Context::event_refresh_ducks_handler(const Smach::event& x)
 }
 
 Smach::event_result
-StateNormal_Context::event_undo_handler(const Smach::event& x)
+StateNormal_Context::event_undo_handler(const Smach::event& /*x*/)
 {
        synfig::info("STATE NORMAL: Received Undo Event");
        canvas_view->get_instance()->undo();
@@ -175,7 +177,7 @@ StateNormal_Context::event_undo_handler(const Smach::event& x)
 }
 
 Smach::event_result
-StateNormal_Context::event_redo_handler(const Smach::event& x)
+StateNormal_Context::event_redo_handler(const Smach::event& /*x*/)
 {
        synfig::info("STATE NORMAL: Received Redo Event");
        canvas_view->get_instance()->redo();
@@ -263,10 +265,8 @@ StateNormal_Context::edit_several_waypoints(std::list<synfigapp::ValueDesc> valu
        dialog.add_button(Gtk::StockID("gtk-cancel"),0);
        dialog.show();
 
-       DEBUGPOINT();
        if(dialog.run()==0)
                return;
-       DEBUGPOINT();
        synfigapp::Action::PassiveGrouper group(get_canvas_interface()->get_instance().get(),_("Set Waypoints"));
 
        std::list<synfigapp::ValueDesc>::iterator iter;
@@ -363,7 +363,7 @@ StateNormal_Context::edit_several_waypoints(std::list<synfigapp::ValueDesc> valu
 */
 
 Smach::event_result
-StateNormal_Context::event_multiple_ducks_clicked_handler(const Smach::event& x)
+StateNormal_Context::event_multiple_ducks_clicked_handler(const Smach::event& /*x*/)
 {
        synfig::info("STATE NORMAL: Received multiple duck click event");
 
@@ -395,6 +395,7 @@ StateNormal_Context::event_multiple_ducks_clicked_handler(const Smach::event& x)
        }
 
        Gtk::Menu *menu=manage(new Gtk::Menu());
+       menu->signal_hide().connect(sigc::bind(sigc::ptr_fun(&delete_widget), menu));
 
        canvas_view->get_instance()->make_param_menu(menu,canvas_view->get_canvas(),value_desc_list);