X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fstate_polygon.cpp;h=3d0dd01433568a76b091a3f443d6f6d10eae0f5a;hb=c47c55f3496571ee27d1ad0f9eae1974a50d82eb;hp=f2eb6d48e64d3d6e2d05d360a6a3f741d8ed3f04;hpb=37864763edb5eb5303f2ce69dfaee72f8d5bd00b;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/state_polygon.cpp b/synfig-studio/trunk/src/gtkmm/state_polygon.cpp index f2eb6d4..3d0dd01 100644 --- a/synfig-studio/trunk/src/gtkmm/state_polygon.cpp +++ b/synfig-studio/trunk/src/gtkmm/state_polygon.cpp @@ -47,6 +47,8 @@ #include "dialog_tooloptions.h" #include +#include "general.h" + #endif /* === U S I N G =========================================================== */ @@ -383,6 +385,7 @@ StatePolygon_Context::run() action->set_param("canvas_interface",get_canvas_interface()); action->set_param("value_desc",value_desc); action->set_param("type","dynamic_list"); + action->set_param("time",get_canvas_interface()->get_time()); if(!get_canvas_interface()->get_instance()->perform_action(action)) { group.cancel(); @@ -423,7 +426,8 @@ StatePolygon_Context::event_mouse_click_handler(const Smach::event& x) return Smach::RESULT_ACCEPT; case BUTTON_RIGHT: // Intercept the right-button click to short-circuit the pop-up menu - return Smach::RESULT_ACCEPT; + if (!getenv("SYNFIG_ENABLE_POPUP_MENU_IN_ALL_TOOLS")) + return Smach::RESULT_ACCEPT; default: return Smach::RESULT_OK;