[gtk+] gtkmain: Invoke keysnoopers unconditionally
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtkmain: Invoke keysnoopers unconditionally
- Date: Wed, 1 Feb 2012 14:50:10 +0000 (UTC)
commit c0ee68b7fe48a989bb02a06cc94fc13bddb39de3
Author: Benjamin Otte <otte redhat com>
Date: Wed Feb 1 15:44:27 2012 +0100
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 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 273f145..e8a15b4 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 */
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]