The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Fixes for Mac OS X

These changes was commited to the Birdfont repository Wed, 13 May 2015 18:30:46 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Wed, 13 May 2015 18:30:46 +0000]

Updated Files

libbirdfont/BirdFont.vala
libbirdfont/SearchPaths.vala
--- a/libbirdfont/BirdFont.vala +++ b/libbirdfont/BirdFont.vala @@ -366,7 +366,7 @@ public static bool mac = false; public static bool android = false; public static string exec_path = ""; - public static string bundle_path = ""; + public static string? bundle_path = null; public static bool logging = false; public static DataOutputStream? logstream = null;
--- a/libbirdfont/SearchPaths.vala +++ b/libbirdfont/SearchPaths.vala @@ -177,6 +177,11 @@ } f = (!) File.new_for_path (BirdFont.exec_path + "/Contents/Resources/NamesList.txt"); + if (f.query_exists ()) { + return f; + } + + f = (!) File.new_for_path (BirdFont.bundle_path + "/Contents/Resources/NamesList.txt"); if (f.query_exists ()) { return f; }