Clone in a terminal:
Commit c797360
Johan Mattsson - 2017-01-02T13:40:59+00:00
c7973608be2c3ee5e7b1590c07fa829400820373johan.mattsson.m@gmail.com

Reset thumbnails after updating path orientation in the overview tab

Changed files (2)

Diff

diff --git a/libbirdfont/OverView.vala b/libbirdfont/OverView.valaindex 8786f71..2b54dce 100644--- a/libbirdfont/OverView.vala+++ b/libbirdfont/OverView.vala@@ -682,6 +682,15 @@ public class OverView : FontDisplay { 		update_scheduled = false; 	} 	+	public void reset_thumbnails () {+		for (int i = 0; i < visible_items.size; i++) {+			OverViewItem item = visible_items.get (i);+			item.clear_cache ();+		}+		+		update_item_list ();+	}+	 	public override void draw (WidgetAllocation allocation, Context cr) { 		if (update_scheduled 			|| this.allocation.width != allocation.widthdiff --git a/libbirdfont/OverviewTools.vala b/libbirdfont/OverviewTools.valaindex 7cc05fd..9ea301a 100644--- a/libbirdfont/OverviewTools.vala+++ b/libbirdfont/OverviewTools.vala@@ -1,5 +1,5 @@ /*-	Copyright (C) 2014 2015 Johan Mattsson+	Copyright (C) 2014 2015 2016 Johan Mattsson  	This library is free software; you can redistribute it and/or modify  	it under the terms of the GNU Lesser General Public License as @@ -179,7 +179,9 @@ public class OverviewTools : ToolCollection  { 			IdleSource idle = new IdleSource (); 			idle.set_callback (() => { 				self.set_selected (false);-				BirdFont.get_current_font ().touch ();		+				BirdFont.get_current_font ().touch ();+				MainWindow.get_overview ().reset_thumbnails ();	+				GlyphCanvas.redraw (); 				return false; 			}); 			idle.attach (null);

Contact

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