[orca/gnome-3-16] Work around still more missing object:state-changed:focused events from Gtk+
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-16] Work around still more missing object:state-changed:focused events from Gtk+
- Date: Mon, 25 May 2015 16:12:45 +0000 (UTC)
commit 273c046c2ec9a8f8bc20a23018914392658d7c94
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon May 25 12:10:55 2015 -0400
Work around still more missing object:state-changed:focused events from Gtk+
src/orca/scripts/toolkits/gtk/script.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/gtk/script.py b/src/orca/scripts/toolkits/gtk/script.py
index d8c945d..afb77da 100644
--- a/src/orca/scripts/toolkits/gtk/script.py
+++ b/src/orca/scripts/toolkits/gtk/script.py
@@ -159,6 +159,12 @@ class Script(default.Script):
orca.setLocusOfFocus(event, event.source)
return
+ # Unfiled seems we're missing object:state-changed events for other
+ # Gtk+ menu items as well.
+ if role in [pyatspi.ROLE_CHECK_MENU_ITEM, pyatspi.ROLE_RADIO_MENU_ITEM]:
+ orca.setLocusOfFocus(event, event.source)
+ return
+
# Unfiled. When a canvas item gets focus but is not selected, we
# are only getting a focus event. This happens in Nautilus.
if role == pyatspi.ROLE_CANVAS:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]