[java-atk-wrapper] Atwrapper add debugging to signals



commit 1937e99134200f1e85c9d32b172c102f2572a115
Author: Magdalen Berns <m berns thismagpie com>
Date:   Wed Jan 21 22:36:05 2015 +0000

    Atwrapper add debugging to signals
    
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=743320

 jni/src/AtkWrapper.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/jni/src/AtkWrapper.c b/jni/src/AtkWrapper.c
index 29111cd..3cbb922 100644
--- a/jni/src/AtkWrapper.c
+++ b/jni/src/AtkWrapper.c
@@ -263,7 +263,9 @@ focus_notify_handler (gpointer p)
   }
 
   AtkObject* atk_obj = ATK_OBJECT(jaw_impl);
-  atk_focus_tracker_notify(atk_obj);
+  atk_object_notify_state_change(atk_obj,
+                                 ATK_STATE_SHOWING,
+                                 1);
 
   free_callback_para(para);
 
@@ -770,6 +772,7 @@ signal_emit_handler (gpointer p)
   JNIEnv *jniEnv = jaw_util_get_jni_env();
   if (jniEnv == NULL)
   {
+    g_warning("\n *** signal_emit_handler: global_ac == NULL *** \n");
     free_callback_para(para);
     return FALSE;
   }
@@ -778,7 +781,7 @@ signal_emit_handler (gpointer p)
 
   if (global_ac == NULL)
   {
-    fprintf(stderr,"\n *** signal_emit_handler: global_ac == NULL *** \n");
+    g_warning("\n *** signal_emit_handler: global_ac == NULL *** \n");
     free_callback_para(para);
     return FALSE;
   }
@@ -787,6 +790,7 @@ signal_emit_handler (gpointer p)
 
   if (jaw_impl == NULL)
   {
+    g_warning("\n *** signal_emit_handler: jaw_impl == NULL *** \n");
     free_callback_para(para);
     return FALSE;
   }


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