projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enable Stop button and ESC key to change to Normal Tool for the Circle, Draw,
[synfig.git]
/
synfig-studio
/
src
/
gtkmm
/
state_sketch.cpp
diff --git
a/synfig-studio/src/gtkmm/state_sketch.cpp
b/synfig-studio/src/gtkmm/state_sketch.cpp
index
0cac528
..
5db2044
100644
(file)
--- a/
synfig-studio/src/gtkmm/state_sketch.cpp
+++ b/
synfig-studio/src/gtkmm/state_sketch.cpp
@@
-230,7
+230,7
@@
StateSketch_Context::toggle_show_sketch()
}
StateSketch_Context::StateSketch_Context(CanvasView* canvas_view):
}
StateSketch_Context::StateSketch_Context(CanvasView* canvas_view):
- action_group(Gtk::ActionGroup::create()),
+ action_group(Gtk::ActionGroup::create(
"action_group_state_sketch"
)),
canvas_view_(canvas_view),
is_working(*canvas_view),
prev_workarea_layer_status_(get_work_area()->get_allow_layer_clicks()),
canvas_view_(canvas_view),
is_working(*canvas_view),
prev_workarea_layer_status_(get_work_area()->get_allow_layer_clicks()),
@@
-465,7
+465,9
@@
StateSketch_Context::event_yield_tool_options(const Smach::event& /*x*/)
Smach::event_result
StateSketch_Context::event_stop_handler(const Smach::event& /*x*/)
{
Smach::event_result
StateSketch_Context::event_stop_handler(const Smach::event& /*x*/)
{
- throw Smach::egress_exception();
+ //throw Smach::egress_exception();
+ throw &state_normal;
+ return Smach::RESULT_OK;
}
Smach::event_result
}
Smach::event_result