[java-atk-wrapper] AtkWrapper: Use g_cond_init



commit c7b0b5c7e42388e1fb6c9350f14724d3e7b0cc66
Author: Magdalen Berns <m berns thismagpie com>
Date:   Thu Nov 20 20:56:28 2014 +0000

    AtkWrapper: Use g_cond_init
    
    g_cond_new is deprecated.
    
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=740271

 jni/src/AtkWrapper.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/jni/src/AtkWrapper.c b/jni/src/AtkWrapper.c
index 210d726..00bf4f8 100644
--- a/jni/src/AtkWrapper.c
+++ b/jni/src/AtkWrapper.c
@@ -150,6 +150,7 @@ JNIEXPORT jboolean
 JNICALL Java_org_GNOME_Accessibility_AtkWrapper_initNativeLibrary(JNIEnv *jniEnv,
                                                                   jclass jClass)
 {
+  GCond *cond;
   // Hook up g_idle_dispatch
   origin_g_idle_dispatch = g_idle_funcs.dispatch;
   g_idle_funcs.dispatch = jaw_idle_dispatch;
@@ -185,8 +186,7 @@ JNICALL Java_org_GNOME_Accessibility_AtkWrapper_initNativeLibrary(JNIEnv *jniEnv
   jmutex = g_new(JGMutex, 1);
   g_mutex_init (&jmutex->jg_mutex);
 
-  atk_bridge_cond = g_cond_new();
-  key_dispatch_cond = g_cond_new();
+  g_cond_init(cond);
 
   // Dummy idle function for jaw_idle_dispatch to get
   // the address of gdk_threads_dispatch


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]