[clutter] tests: a11y: updated atkevents after bug 675183



commit b525253c88ed6f0dd57e4397fe11f07760059056
Author: Alejandro PiÃeiro <apinheiro igalia com>
Date:   Mon Jun 18 11:28:45 2012 +0200

    tests: a11y: updated atkevents after bug 675183

 tests/accessibility/cally-atkevents-example.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/tests/accessibility/cally-atkevents-example.c b/tests/accessibility/cally-atkevents-example.c
index 4a55c9f..6740cb8 100644
--- a/tests/accessibility/cally-atkevents-example.c
+++ b/tests/accessibility/cally-atkevents-example.c
@@ -139,7 +139,7 @@ main (int argc, char *argv[])
 {
   ClutterActor *stage, *stage_main;
   Data data1, data2, data3;
-  guint id_2 = 0;
+  guint id_1 = 0, id_2 = 0, id_3 = 0;
 
   g_set_application_name ("AtkText");
 
@@ -158,12 +158,15 @@ main (int argc, char *argv[])
   data3.value = 30;
 
   /* key event listeners */
-  atk_add_key_event_listener ((AtkKeySnoopFunc)atk_key_listener, &data1);
+  id_1 = atk_add_key_event_listener ((AtkKeySnoopFunc)atk_key_listener, &data1);
+  atk_remove_key_event_listener (id_1);
   id_2 = atk_add_key_event_listener ((AtkKeySnoopFunc)atk_key_listener, &data2);
-  atk_add_key_event_listener ((AtkKeySnoopFunc)atk_key_listener, &data3);
+  id_3 = atk_add_key_event_listener ((AtkKeySnoopFunc)atk_key_listener, &data3);
 
   atk_remove_key_event_listener (id_2);
 
+  g_print ("key event listener ids registered: (%i, %i, %i)\n", id_1, id_2, id_3);
+
   /* event listeners */
   atk_add_global_event_listener (window_event_listener, "Atk:AtkWindow:create");
   atk_add_global_event_listener (window_event_listener, "Atk:AtkWindow:destroy");



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