The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Fix tool selection on Mac

These changes was commited to the Birdfont repository Mon, 15 Jun 2015 17:38:45 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Mon, 15 Jun 2015 17:38:45 +0000]

Updated Files

libbirdfont/DrawingTools.vala
--- a/libbirdfont/DrawingTools.vala +++ b/libbirdfont/DrawingTools.vala @@ -1386,8 +1386,9 @@ hide_all_modifiers (); foreach (Tool t in draw_tools.tool) { - // FIXME: infinite loop on Mac OS - // t.set_selected (false); + if (t != current_tool) { + t.set_selected (false); + } } cut_background.set_selected (false); @@ -1416,7 +1417,7 @@ flip_horizontal.set_selected (false); current_tool.set_selected (true); - current_tool.select_action (current_tool); + //current_tool.select_action (current_tool); if (resize_tool.is_selected () || move_tool.is_selected ()) { show_object_tool_modifiers ();