[java-atk-wrapper] Disable ATK Bridge before we load it to prevent it from being loaded by GTK laf first
- From: Ke Wang <kewang src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper] Disable ATK Bridge before we load it to prevent it from being loaded by GTK laf first
- Date: Fri, 26 Feb 2010 10:04:06 +0000 (UTC)
commit f78a65a1818c4c4b056d3d418a2af020fb7efb46
Author: Ke Wang <ke wang sun com>
Date: Fri Feb 26 18:02:06 2010 +0800
Disable ATK Bridge before we load it to prevent it from being loaded by GTK laf first
jni/src/AtkWrapper.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/jni/src/AtkWrapper.c b/jni/src/AtkWrapper.c
index 3dcee94..f05b1b3 100644
--- a/jni/src/AtkWrapper.c
+++ b/jni/src/AtkWrapper.c
@@ -162,6 +162,10 @@ JNIEXPORT void JNICALL Java_org_GNOME_Accessibility_AtkWrapper_initNativeLibrary
// Set NO_GAIL to "1" to prevent gail from executing
g_setenv("NO_GAIL", "1", TRUE);
+ // Disable ATK Bridge temporarily to aoid the loading
+ // of ATK Bridge by GTK look and feel
+ g_setenv("NO_AT_BRIDGE", "1", TRUE);
+
g_type_class_unref(g_type_class_ref(JAW_TYPE_UTIL));
g_type_class_unref(g_type_class_ref(JAW_TYPE_MISC));
// Force to invoke base initialization function of each ATK interfaces
@@ -186,6 +190,9 @@ JNIEXPORT void JNICALL Java_org_GNOME_Accessibility_AtkWrapper_initNativeLibrary
}
JNIEXPORT void JNICALL Java_org_GNOME_Accessibility_AtkWrapper_loadAtkBridge(JNIEnv *jniEnv, jclass jClass) {
+ // Enable ATK Bridge so we can load it now
+ g_setenv("NO_AT_BRIDGE", "1", TRUE);
+
GMainLoop *main_loop = g_main_loop_new( NULL, FALSE );
g_idle_add(jaw_load_atk_bridge, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]