The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Fix state of buttons in kerning tools

These changes was commited to the Birdfont repository Mon, 28 Sep 2015 08:23:03 +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, 28 Sep 2015 08:23:03 +0000 (10:23 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Mon, 28 Sep 2015 08:23:03 +0000 (10:23 +0200)
commit c147091bfb2e6ce7b203478056780d9b57efe441
tree 317f29cf9ec7a0524dfbf728ac12b40f8eadcc5a
parent bd66d9b55d01a161bb623c7739de886981507245
Fix state of buttons in kerning tools

libbirdfont/KerningTools.vala
--- a/libbirdfont/KerningTools.vala +++ b/libbirdfont/KerningTools.vala @@ -65,6 +65,7 @@ string label = t_("Kerning class"); KerningRange kr = new KerningRange (font, @"$label $(++next_class)"); classes.add_tool (kr); + self.set_selected (false); classes.redraw (); }); kerning_tools.add_tool (new_kerning_class); @@ -73,6 +74,7 @@ text_kerning.select_action.connect ((self) => { KerningDisplay d = MainWindow.get_kerning_display (); d.set_kerning_by_text (); + self.set_selected (false); }); kerning_tools.add_tool (text_kerning); @@ -87,6 +89,7 @@ }); GlyphCanvas.set_display (gs); + self.set_selected (false); }); kerning_tools.add_tool (insert_last); @@ -94,6 +97,7 @@ insert_unicode.select_action.connect ((self) => { KerningDisplay d = MainWindow.get_kerning_display (); d.insert_unichar (); + self.set_selected (false); }); kerning_tools.add_tool (insert_unicode); @@ -114,6 +118,7 @@ d.new_line (); d.add_text (w); } + self.set_selected (false); }); kerning_tools.add_tool (previous_kerning_string); @@ -131,7 +136,8 @@ } else { d.new_line (); d.add_text (w); - } + } + self.set_selected (false); }); kerning_tools.add_tool (next_kerning_string);