The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – 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
[Sat, 06 Sep 2014 21:06:01 +0000]

Updated Files

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