Clone in a terminal:
Commit 88136a8
Johan Mattsson - 2015-10-25T18:20:33+00:00
88136a8dbad5637479020fb46fb7950d113a6e1bjohan.mattsson.m@gmail.com

Update resources path on Mac and fix image conversion

Changed files (2)

Diff

diff --git a/libbirdfont/BackgroundImage.vala b/libbirdfont/BackgroundImage.valaindex 7a01b10..8a2652f 100644--- a/libbirdfont/BackgroundImage.vala+++ b/libbirdfont/BackgroundImage.vala@@ -327,6 +327,8 @@ public class BackgroundImage { 			return; 		} 		+        folder.make_directory ();+         		converted = MainWindow.native_window.convert_to_png (path.dup (), ((!) png_image.get_path ()).dup ()); 		 		if (!converted) {diff --git a/libbirdfont/SearchPaths.vala b/libbirdfont/SearchPaths.valaindex 1c1534c..b37017a 100644--- a/libbirdfont/SearchPaths.vala+++ b/libbirdfont/SearchPaths.vala@@ -61,15 +61,12 @@ public class SearchPaths { 		f = get_file (BirdFont.exec_path + "\\", name + "\\"); 		if (likely (f.query_exists ())) return f; 		-		f = get_file (bundle_path + "/Contents/Resources/", d + "/" + name);+		f = get_file (bundle_path + "/Contents/Resources/birdfont_resources/", d + "/" + name); 		if (likely (f.query_exists ())) return f; 		-		f = get_file (bundle_path + "/Contents/Resources/", name + "/");+		f = get_file (bundle_path + "/Contents/Resources/birdfont_resources/", name + "/"); 		if (likely (f.query_exists ())) return f;--		f = get_file (bundle_path + "/Contents/MacOS/", name);-		if (likely (f.query_exists ())) return f;-				+         		f = get_file ("./" + d + "/", name); 		if (likely (f.query_exists ())) return f;		 @@ -113,9 +110,9 @@ public class SearchPaths { 		} 		 		if (!is_null (BirdFont.exec_path)) {-			f = BirdFont.exec_path + "/Contents/Resources/locale/sv/LC_MESSAGES/birdfont.mo";+			f = BirdFont.exec_path + "/Contents/Resources/birdfont_resources/locale/sv/LC_MESSAGES/birdfont.mo"; 			if (exists (f)) {-				return BirdFont.exec_path + "/Contents/Resources/locale";+				return BirdFont.exec_path + "/Contents/birdfont_resources/Resources/locale"; 			} 			 			f = BirdFont.exec_path + "\\locale\\sv\\LC_MESSAGES\\birdfont.mo";@@ -144,14 +141,14 @@ public class SearchPaths { 			return "/usr/share/locale"; 		} 		-		f = BirdFont.exec_path + "/Contents/Resources/locale";+		f = BirdFont.exec_path + "/Contents/Resources/birdfont_resources/locale"; 		if (exists (f)) {-			return BirdFont.exec_path + "/Contents/Resources/locale";+			return BirdFont.exec_path + "/Contents/Resources/birdfont_resources/locale"; 		} -		f = bundle_path + "/Contents/Resources/locale";+		f = bundle_path + "/Contents/Resources/birdfont_resources/locale"; 		if (exists (f)) {-			return bundle_path + "/Contents/Resources/locale";+			return bundle_path + "/Contents/Resources/birdfont_resources/locale"; 		} 				 		warning ("translations not found");

Contact

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