The Birdfont Source Code


All Repositories / birdfont.git / commit – 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
author Johan Mattsson <johan.mattsson.m@gmail.com>
Mon, 15 Jun 2015 17:38:45 +0000 (19:38 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Mon, 15 Jun 2015 17:38:45 +0000 (19:38 +0200)
commit abf84f8e5afc5ba091f246ec393c667f9db95ac6
tree 83017301c6bc5acf48302abf2440acec90aae4fb
parent 04ead2384539213db26fbbfbc5cfb94630a29af8
Fix tool selection on Mac

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 ();