a11y: atk_add_key_event_listener listener_id should not return 0 as a valid value
authorAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 9 May 2012 15:10:55 +0000 (15:10 +0000)
committerLaurent Bigonville <bigon@debian.org>
Sat, 4 Aug 2012 20:36:28 +0000 (20:36 +0000)
cally_util_add_key_event_listener first id returned was 0, but as
the documentation says, this is a reserved value for a wrong id

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=675183

Gbp-Pq: Name 01_a11y-atk_add_key_event_listener-listener_id-return-value.patch

clutter/cally/cally-util.c

index 27975554ebd1f3220ab77f014482b68b36f1db0a..e4c90a7a48f32ecf81e863fc77aae2471c7a7b6e 100644 (file)
@@ -233,7 +233,7 @@ static guint
 cally_util_add_key_event_listener (AtkKeySnoopFunc  listener,
                                    gpointer         data)
 {
-  static guint key=0;
+  static guint key = 1;
   CallyKeyEventInfo *event_info = NULL;
 
   if (!key_listener_list)