The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Clear spacing classes when a new font is loaded

These changes was commited to the Birdfont repository Sat, 06 Sep 2014 21:06:01 +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>
Sat, 06 Sep 2014 21:06:01 +0000 (23:06 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Sat, 06 Sep 2014 21:06:01 +0000 (23:06 +0200)
commit 05c327d5ca76fc08fe6ff8f18cb0fbfb3cbe1b96
tree dceb447ca82a21698f2c85ba9ead7bb6aec690c3
parent 9857e7a6e8ee6c30a570e88582317b39e0406072
Clear spacing classes when a new font is loaded

libbirdfont/BirdFont.vala
libbirdfont/MenuTab.vala
--- a/libbirdfont/BirdFont.vala +++ b/libbirdfont/BirdFont.vala @@ -507,6 +507,13 @@ internal static Font new_font () { current_font = new Font (); + + MainWindow.get_drawing_tools ().remove_all_grid_buttons (); + MainWindow.get_drawing_tools ().add_new_grid (); + MainWindow.get_drawing_tools ().add_new_grid (); + SpacingClassTab.remove_all_spaving_classes (); + KerningTools.update_kerning_classes (); + return current_font; }
--- a/libbirdfont/MenuTab.vala +++ b/libbirdfont/MenuTab.vala @@ -183,14 +183,7 @@ dialog.signal_discard.connect (() => { MainWindow.close_all_tabs (); - BirdFont.new_font (); - - MainWindow.get_drawing_tools ().remove_all_grid_buttons (); - MainWindow.get_drawing_tools ().add_new_grid (); - MainWindow.get_drawing_tools ().add_new_grid (); - - KerningTools.update_kerning_classes (); - + BirdFont.new_font (); MainWindow.native_window.font_loaded (); select_overview ();