[gedit/wip/3.14-osx] [osx] [spell] Check for bundle before getting resource path



commit 362a71f19a40dc68789e65ab1358df38a4a79b2c
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Fri Aug 22 13:46:59 2014 +0200

    [osx] [spell] Check for bundle before getting resource path

 plugins/spell/gedit-spell-osx.c |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/plugins/spell/gedit-spell-osx.c b/plugins/spell/gedit-spell-osx.c
index bf90616..7b3b999 100644
--- a/plugins/spell/gedit-spell-osx.c
+++ b/plugins/spell/gedit-spell-osx.c
@@ -5,7 +5,18 @@
 gchar *
 gedit_spell_osx_get_resource_path (void)
 {
-       return gtkosx_application_get_resource_path ();
+       gchar *id;
+       gchar *ret = NULL;
+
+       id = gtkosx_application_get_bundle_id ();
+
+       if (id != NULL)
+       {
+               ret = gtkosx_application_get_resource_path ();
+       }
+
+       g_free (id);
+       return ret;
 }
 
 gchar *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]