From c0ee68b7fe48a989bb02a06cc94fc13bddb39de3 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 1 Feb 2012 15:44:27 +0100 Subject: [PATCH] gtkmain: Invoke keysnoopers unconditionally Now that ATK no longer uses a key snooper but is invoked directly, checking in advance for existing snoopers is wrong and stops ATK from working. Also: code reduction without performance loss == good thing. https://bugzilla.gnome.org/show_bug.cgi?id=669176 --- gtk/gtkmain.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 273f145e86..e8a15b44cc 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -1640,11 +1640,8 @@ gtk_main_do_event (GdkEvent *event) case GDK_KEY_PRESS: case GDK_KEY_RELEASE: - if (key_snoopers) - { - if (gtk_invoke_key_snoopers (grab_widget, event)) - break; - } + if (gtk_invoke_key_snoopers (grab_widget, event)) + break; /* make focus visible in a window that receives a key event */ {