Clone in a terminal:
Commit bb4e340
Johan Mattsson - 2012-09-05T13:31:01+00:00
bb4e340890bc235c77eacc2d83849aab8004c3edjohan.mattsson.m@gmail.com

click in overview after last glyph selects it

Changed files (2)

Diff

diff --git a/src/Birdfont.vala b/src/Birdfont.valaindex c3ae03f..5d829f5 100644--- a/src/Birdfont.vala+++ b/src/Birdfont.vala@@ -44,6 +44,7 @@ public static int run_gui (string[] arg) { 	stdout.printf ("birdfont version %s\n", VERSION);		  	supplement.current_font = new Font ();+	supplement.current_glyph = new Glyph ("");  	supplement.experimental = args.has_argument ("--test"); 	supplement.show_coordinates = args.has_argument ("--show-coordinates");diff --git a/src/OverView.vala b/src/OverView.valaindex 0c43c82..0f72a53 100644--- a/src/OverView.vala+++ b/src/OverView.vala@@ -666,7 +666,7 @@ class OverView : FontDisplay { 		selected += items_per_row; 		 		if (selected > rows * items_per_row + first_visible) {-				scroll (-nail_height);+			scroll (-nail_height); 		} 		 		adjust_scroll ();@@ -752,7 +752,7 @@ class OverView : FontDisplay { 		if (all_avail) { 			f = Supplement.get_current_font (); 			g = f.get_glyph_indice (selected);-			return_val_if_fail (g != null, "");+			return_val_if_fail (g != null, "".dup ()); 			return ((!) g).get_name (); 		} 		@@ -885,13 +885,17 @@ class OverView : FontDisplay { 		Font f; 		uint len; 	+		if (get_visible_glyphs ().length () == 0) {+			return;+		}+	 		if (all_avail) { 			f = Supplement.get_current_font (); 			len = f.length (); 		} else { 			len = glyph_range.length (); 		}-			+		 		foreach (GlyphCollection g in get_visible_glyphs ()) { 			bool a; @@ -942,6 +946,12 @@ class OverView : FontDisplay { 		} 		 		selected--;+	+		if (at_bottom () && selected >= len) {+			selected = len - 1;+		}+		+		adjust_scroll (); 		 		if (current == selected && !menu_action) { 			open_glyph_signal (get_selected_char ());

Contact

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