Clone in a terminal:
Commit 366e9bb
Johan Mattsson - 2020-07-25T22:49:28+00:00
366e9bb327bceec6ed034a9d3c7fef73807a6e0djohan.mattsson.m@gmail.com

Select last glyph

Changed files (1)

Diff

diff --git a/libbirdfont/VersionList.vala b/libbirdfont/VersionList.valaindex 43a7037..4d82cd5 100644--- a/libbirdfont/VersionList.vala+++ b/libbirdfont/VersionList.vala@@ -122,6 +122,8 @@ public class VersionList : GLib.Object { 			int i = get_current_version_index (); 			set_selected_item (get_action_index (i)); 		}+		+		select_last_glyph (); 	}  	private int get_current_version_index () {@@ -402,6 +404,18 @@ public class VersionList : GLib.Object { 		 		return false; 	}++	void select_last_glyph () {+		MenuAction? ma = null;+		+		foreach (MenuAction m in actions) {+			ma = m;+		}+		+		if (ma != null) {+			set_selected_item ((!) ma);+		}+	} 	 	public bool menu_icon_action (double px, double py) {		 		menu_visible = is_over_icon (px, py);

Contact

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