Clone in a terminal:
Commit 9eed381
Johan Mattsson - 2015-06-13T18:22:32+00:00
9eed3817a5a1faf17dbb09a89984a14946635438johan.mattsson.m@gmail.com

Generate overview items when new fonts are loaded

Changed files (2)

Diff

diff --git a/libbirdfont/OverView.vala b/libbirdfont/OverView.valaindex 24c5575..77f03cd 100644--- a/libbirdfont/OverView.vala+++ b/libbirdfont/OverView.vala@@ -108,8 +108,8 @@ public class OverView : FontDisplay { 		IdleSource idle = new IdleSource ();  		idle.set_callback (() => {			-			selected_canvas (); 			use_default_character_set ();+			selected_canvas (); 			return false; 		}); 		@@ -504,6 +504,12 @@ public class OverView : FontDisplay { 	} 	 	public override void draw (WidgetAllocation allocation, Context cr) {+		+		if (this.allocation.width == 0) {+			this.allocation = allocation;+			update_item_list ();+		}+		 		this.allocation = allocation; 		 		// clear canvasdiff --git a/libbirdfont/RecentFiles.vala b/libbirdfont/RecentFiles.valaindex ada3cb8..e5e8fbb 100644--- a/libbirdfont/RecentFiles.vala+++ b/libbirdfont/RecentFiles.vala@@ -212,9 +212,10 @@ public class RecentFiles : Table { 			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 @@ public class RecentFiles : Table { 			} 			 			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 (() => {

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112