[orca] Present state changes of child widgets of GtkListBox items



commit b177476250e0eae610d3775bcc44e88171e706d5
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Sep 10 15:11:50 2013 -0400

    Present state changes of child widgets of GtkListBox items

 src/orca/scripts/default.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index d2c5d05..c1ec808 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -905,7 +905,10 @@ class Script(script.Script):
             notification_messages.saveMessage(msg)
 
         if not self.utilities.isSameObject(obj, orca_state.locusOfFocus):
-            return
+            # Present state changes of child widgets of GtkListBox items
+            isListBox = lambda x: x and x.getRole() == pyatspi.ROLE_LIST_BOX
+            if not pyatspi.findAncestor(obj, isListBox):
+                return
 
         # Radio buttons normally change their state when you arrow to them,
         # so we handle the announcement of their state changes in the focus


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]