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 (17:10 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Mon, 18 Jun 2012 10:44:55 +0000 (12:44 +0200)
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

clutter/cally/cally-util.c

index 2797555..e4c90a7 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)