The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Generate overview items when new fonts are loaded

These changes was commited to the Birdfont repository Sat, 13 Jun 2015 18:22:32 +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, 13 Jun 2015 18:22:32 +0000]

Updated Files

libbirdfont/OverView.vala
libbirdfont/RecentFiles.vala
--- a/libbirdfont/OverView.vala +++ b/libbirdfont/OverView.vala @@ -108,8 +108,8 @@ IdleSource idle = new IdleSource (); idle.set_callback (() => { - selected_canvas (); use_default_character_set (); + selected_canvas (); return false; }); @@ -504,6 +504,12 @@ } public override void draw (WidgetAllocation allocation, Context cr) { + + if (this.allocation.width == 0) { + this.allocation = allocation; + update_item_list (); + } + this.allocation = allocation; // clear canvas
--- a/libbirdfont/RecentFiles.vala +++ b/libbirdfont/RecentFiles.vala @@ -212,9 +212,10 @@ Font f; if (MenuTab.suppress_event) { + warning ("Load font event suppressed."); return; } - + f = BirdFont.get_current_font (); MainWindow.get_drawing_tools ().remove_all_grid_buttons (); @@ -223,10 +224,11 @@ } DrawingTools.background_scale.set_value (f.background_scale); - KerningTools.update_kerning_classes (); - MenuTab.show_all_available_characters (); - + KerningTools.update_kerning_classes (); MenuTab.apply_font_setting (f); + + MenuTab.show_default_characters (); + MainWindow.get_overview ().selected_canvas (); }); dialog.signal_discard.connect (() => {