Clone in a terminal:
Commit 05ac1eb
Johan Mattsson - 2015-03-18T13:39:15+00:00
05ac1eb301f1ee45af6604b4d0be3a16c9a981b9johan.mattsson.m@gmail.com

Select first character when overview tab is created

Changed files (2)

Diff

diff --git a/libbirdfont/OverView.vala b/libbirdfont/OverView.valaindex 06696c2..eb774ba 100644--- a/libbirdfont/OverView.vala+++ b/libbirdfont/OverView.vala@@ -81,6 +81,15 @@ public class OverView : FontDisplay { 				create_new_glyph (character); 			}); 		}++		IdleSource idle = new IdleSource ();++		idle.set_callback (() => {			+			selected_canvas ();+			return false;+		});+		+		idle.attach (null); 		 		update_scrollbar (); 		reset_zoom ();@@ -239,6 +248,7 @@ public class OverView : FontDisplay { 		update_scrollbar (); 		update_zoom_bar (); 		OverViewItem.glyph_scale = 1;+		selected_item = get_selected_item (); 		GlyphCanvas.redraw (); 	} 	@@ -319,10 +329,7 @@ public class OverView : FontDisplay { 		first_visible = 0; 		selected = 0; 		-		if (selected > visible_items.size) {-			selected_item = get_selected_item ();-		}-		+		selected_item = get_selected_item (); 		GlyphCanvas.redraw (); 	} 	@@ -1039,6 +1046,8 @@ public class OverView : FontDisplay { 		scroll_top ();  		// TODO: scroll down to c+		update_item_list ();+		selected_item = get_selected_item ();  		GlyphCanvas.redraw (); 	}diff --git a/libbirdfont/TestBirdFont.vala b/libbirdfont/TestBirdFont.valaindex 0ba8c88..bb1a40c 100644--- a/libbirdfont/TestBirdFont.vala+++ b/libbirdfont/TestBirdFont.vala@@ -81,7 +81,7 @@ class TestBirdFont : GLib.Object { 		}	
 		
 		if (s == "" || s == "All") {
-			print ("No specific tescase given run all test cases.\n");
+			print ("No specific test case given run all test cases.\n");
 			return true;
 		}
 		

Contact

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