[gtksourceview] [osx] Check for bundle before resource path
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] [osx] Check for bundle before resource path
- Date: Fri, 22 Aug 2014 11:23:35 +0000 (UTC)
commit d625f3807a615771746aa765cc68fcabfdf515ed
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Fri Aug 22 13:23:14 2014 +0200
[osx] Check for bundle before resource path
gtksourceview/gtksourceview-i18n.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/gtksourceview-i18n.c b/gtksourceview/gtksourceview-i18n.c
index cfac90a..b6bbd58 100644
--- a/gtksourceview/gtksourceview-i18n.c
+++ b/gtksourceview/gtksourceview-i18n.c
@@ -39,6 +39,13 @@ dirs_os_x_get_bundle_resource_dir (void)
NSString *path;
pool = [[NSAutoreleasePool alloc] init];
+
+ if ([[NSBundle mainBundle] bundleIdentifier] == nil)
+ {
+ [pool release];
+ return NULL;
+ }
+
path = [[NSBundle mainBundle] resourcePath];
if (!path)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]