Clone in a terminal:
Commit d0b1385
Johan Mattsson - 2015-04-13T18:55:41+00:00
d0b1385148039d6028e29dd4050d16e97e644ae1johan.mattsson.m@gmail.com

Fix minus and autmatic orientation

Changed files (3)

Diff

diff --git a/libbirdfont/Path.vala b/libbirdfont/Path.valaindex 83d86ec..bd85bc2 100644--- a/libbirdfont/Path.vala+++ b/libbirdfont/Path.vala@@ -2149,9 +2149,13 @@ public class Path { 		bool inside; 		PathList lines = new PathList (); 		+		lines = pl;+		+		/** // FIXME: Check automatic orientation. 		foreach (Path p in pl.paths) { 			lines.add (SvgParser.get_lines (p)); 		}+		*/ 		 		foreach (Path p in lines.paths) { 			if (p.points.size > 1 && p != path diff --git a/libbirdfont/RecentFiles.vala b/libbirdfont/RecentFiles.valaindex 74187fe..1e8912b 100644--- a/libbirdfont/RecentFiles.vala+++ b/libbirdfont/RecentFiles.vala@@ -21,6 +21,7 @@ namespace BirdFont { public class RecentFiles : Table { 	Gee.ArrayList<Row> rows = new Gee.ArrayList<Row> (); 	+	const int NEW_FONT = -5; 	const int CURRENT_FONT = -4; 	const int RECENT_FONT = -3; 	const int BACKUP = -2;@@ -35,13 +36,14 @@ public class RecentFiles : Table { 	public override void selected_row (Row row, int column, bool delete_button) {	 		Font f; -		if (row.get_index () == RECENT_FONT) {+		if (row.get_index () == NEW_FONT) {+			MenuTab.new_file ();+			MenuTab.select_overview ();+		} else if (row.get_index () == RECENT_FONT) { 			return_if_fail (row.get_row_data () is Font); 			f = (Font) row.get_row_data (); 			load_font (f.get_path ());-		}-				-		if (row.get_index () == BACKUP) {+		} else if (row.get_index () == BACKUP) { 			return_if_fail (row.get_row_data () is Font); 			f = (Font) row.get_row_data (); 			delete_backup (f.get_file_name ());@@ -56,6 +58,11 @@ public class RecentFiles : Table { 		 		rows.clear (); +		if (recent_fonts.size == 0) {+			row = new Row.columns_1 (t_("Create a New Font"), NEW_FONT, false);+			rows.add (row);	+		}+ 		if (current_font.font_file != null) { 			row = new Row.headline (current_font.get_file_name ()); 			rows.add (row);	@@ -67,7 +74,7 @@ public class RecentFiles : Table { 			rows.add (row); 		} -		if (recent_fonts.size > 0) {			+		if (recent_fonts.size > 0) { 			row = new Row.headline (t_("Recent Files")); 			rows.add (row);	 		}diff --git a/libbirdfont/Toolbox.vala b/libbirdfont/Toolbox.valaindex aaf3d22..9000ad6 100644--- a/libbirdfont/Toolbox.vala+++ b/libbirdfont/Toolbox.vala@@ -116,7 +116,7 @@ public class Toolbox : GLib.Object  { 			allocation_width = w; 			allocation_height = h; 			-			scale = Toolbox.allocation_width / 160.0;+			scale = 1; 			 			Toolbox.redraw_tool_box (); 		}

Contact

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