mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
gail: Fix the atk_add_key_event_listener implementation
Based on a patch by Alejandro Piñeiro Iglesias, https://bugzilla.gnome.org/show_bug.cgi?id=599907
This commit is contained in:
parent
4757979075
commit
66db0d698a
@ -290,8 +290,10 @@ gail_util_add_key_event_listener (AtkKeySnoopFunc listener,
|
|||||||
key_listener_list = g_hash_table_new (NULL, NULL);
|
key_listener_list = g_hash_table_new (NULL, NULL);
|
||||||
key_snooper_id = gtk_key_snooper_install (gail_key_snooper, data);
|
key_snooper_id = gtk_key_snooper_install (gail_key_snooper, data);
|
||||||
}
|
}
|
||||||
g_hash_table_insert (key_listener_list, GUINT_TO_POINTER (key++), (gpointer) listener);
|
key++;
|
||||||
|
g_hash_table_insert (key_listener_list, GUINT_TO_POINTER (key), (gpointer) listener);
|
||||||
/* XXX: we don't check to see if n_listeners > MAXUINT */
|
/* XXX: we don't check to see if n_listeners > MAXUINT */
|
||||||
|
|
||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user