[gedit/wip/3.14-osx: 21/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: 21/69] [osx] [spell] Check for bundle before getting resource path
- Date: Tue, 26 Aug 2014 16:49:28 +0000 (UTC)
commit a0d91b8ad3d5a68dd6d6d129ca10f207c7aca045
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]