From: Alejandro PiƱeiro Date: Wed, 9 May 2012 15:10:55 +0000 (+0000) Subject: a11y: atk_add_key_event_listener listener_id should not return 0 as a valid value X-Git-Tag: archive/raspbian/1.26.0+dfsg-3+rpi1~1^2^2^2^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bd7621e8d64932f9032f71ba80b1123648badb25;p=clutter-1.0.git a11y: atk_add_key_event_listener listener_id should not return 0 as a valid value 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 --- diff --git a/clutter/cally/cally-util.c b/clutter/cally/cally-util.c index 2797555..e4c90a7 100644 --- a/clutter/cally/cally-util.c +++ b/clutter/cally/cally-util.c @@ -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)