[gedit/wip/3.14-osx: 24/69] [osx] [spell] Check for bundle before	getting resource path
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gedit/wip/3.14-osx: 24/69] [osx] [spell] Check for bundle before	getting resource path
- Date: Tue, 26 Aug 2014 12:36:14 +0000 (UTC)
commit 1bb44ccae63a430adce3e4bb3163485c2871bf34
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]