[java-atk-wrapper] Check if g_module_supported
- From: Magdalen Berns <mberns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper] Check if g_module_supported
- Date: Sun, 4 Jan 2015 00:18:04 +0000 (UTC)
commit 73d21e83df004841bee12251df231a25b30ad030
Author: Magdalen Berns <m berns thismagpie com>
Date: Sun Jan 4 00:17:29 2015 +0000
Check if g_module_supported
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=742287
jni/src/AtkWrapper.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/jni/src/AtkWrapper.c b/jni/src/AtkWrapper.c
index 6b4c1e6..5102382 100644
--- a/jni/src/AtkWrapper.c
+++ b/jni/src/AtkWrapper.c
@@ -173,6 +173,9 @@ JNICALL Java_org_GNOME_Accessibility_AtkWrapper_initNativeLibrary(JNIEnv *jniEnv
return JNI_FALSE;
}
+ if (!g_module_supported())
+ return JNI_FALSE;
+
const gchar* gtk_module_path = g_getenv("GTK_PATH");
if (!gtk_module_path)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]