The Birdfont Source Code


All Repositories / birdfont.git / commit – 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
author Johan Mattsson <johan.mattsson.m@gmail.com>
Wed, 13 May 2015 18:30:46 +0000 (20:30 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Wed, 13 May 2015 18:30:46 +0000 (20:30 +0200)
commit 8774237a22c32a1dbe6df3accc5146dbc199de19
tree 7b3b2594c6b50b284752b72195bc37532e8f7a7f
parent 14c3951664224f0b0d085039235b02be7761adf4
Fixes for Mac OS X

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; }