[java-atk-wrapper] JNI: Remove gtk thread functions
- From: Magdalen Berns <mberns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper] JNI: Remove gtk thread functions
- Date: Thu, 4 Jun 2015 20:25:18 +0000 (UTC)
commit 3b9ec7fd1f6f78c59d0848d279dd30b493bd2a34
Author: Magdalen Berns <m berns thismagpie com>
Date: Thu Jun 4 21:23:27 2015 +0100
JNI: Remove gtk thread functions
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=750417
jni/src/AtkWrapper.c | 29 -----------------------------
1 files changed, 0 insertions(+), 29 deletions(-)
---
diff --git a/jni/src/AtkWrapper.c b/jni/src/AtkWrapper.c
index 481435a..9b63a04 100644
--- a/jni/src/AtkWrapper.c
+++ b/jni/src/AtkWrapper.c
@@ -53,7 +53,6 @@ gboolean jaw_debug = FALSE;
static gint key_dispatch_result;
static GMainLoop* jni_main_loop;
-static jobject lock;
static gboolean jaw_initialized = FALSE;
@@ -71,30 +70,6 @@ jaw_accessibility_shutdown (void)
atk_bridge_adaptor_cleanup();
}
-void
-jni_threads_lock()
-{
- JNIEnv* env;
-
- env = jaw_util_get_jni_env();
-
- if ((*env)->MonitorEnter(env, lock) != JNI_OK) {
- if (jaw_debug)
- g_critical("Error trying to get Java side GDK lock");
- }
-}
-void
-jni_threads_unlock()
-{
- JNIEnv* env;
- env = jaw_util_get_jni_env();
-
- if ((*env)->MonitorExit(env, lock) != JNI_OK){
- if (jaw_debug)
- g_critical("Error trying to release Java side GDK lock");
- }
-}
-
static gpointer jni_loop_callback(void *data)
{
if (!g_main_loop_is_running((GMainLoop *)data))
@@ -146,7 +121,6 @@ JNICALL Java_org_GNOME_Accessibility_AtkWrapper_loadAtkBridge(JNIEnv *jniEnv,
char * message;
message = "JNI main loop";
err = NULL;
- jobject obj;
jaw_initialized = jaw_accessibility_init();
if (jaw_debug)
@@ -162,9 +136,6 @@ JNICALL Java_org_GNOME_Accessibility_AtkWrapper_loadAtkBridge(JNIEnv *jniEnv,
g_error_free (err);
}
}
- lock = (*jniEnv)->NewGlobalRef(jniEnv, obj);
- gdk_threads_set_lock_functions(jni_threads_lock, jni_threads_unlock);
- gdk_threads_init();
}
enum _SignalType {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]