[orca] Partial fix for bug 568658



commit 2dd563ea998d68705fabd14ca2837e97a9c95e82
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Sun Jun 21 09:32:07 2009 -0400

    Partial fix for bug 568658
    
    Bug 568658 (Sometimes Orca announces the wrong subject in Thunderbird)
    seems to be due to two issues: 1) pyatspi caching and 2) The hierarchy
    has changed, so isDesiredFocusedItem is failing. By looking at less of
    the hierarchy, we're no longer silent when a message is deleted.

 src/orca/scripts/apps/Thunderbird/script.py |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/orca/scripts/apps/Thunderbird/script.py b/src/orca/scripts/apps/Thunderbird/script.py
index 2b4d2a4..f3f4829 100644
--- a/src/orca/scripts/apps/Thunderbird/script.py
+++ b/src/orca/scripts/apps/Thunderbird/script.py
@@ -353,12 +353,10 @@ class Script(Gecko.Script):
         # number as the previously deleted message).
         # See bug #536451 for more details.
         #
-        rolesList = [pyatspi.ROLE_TABLE_CELL, \
-                     pyatspi.ROLE_TREE_TABLE, \
-                     pyatspi.ROLE_SCROLL_PANE, \
-                     pyatspi.ROLE_SCROLL_PANE, \
-                     pyatspi.ROLE_FRAME, \
-                     pyatspi.ROLE_APPLICATION]
+        rolesList = [pyatspi.ROLE_TABLE_CELL,
+                     pyatspi.ROLE_TREE_TABLE,
+                     pyatspi.ROLE_SCROLL_PANE,
+                     pyatspi.ROLE_SCROLL_PANE]
         if self.isDesiredFocusedItem(event.source, rolesList):
             if isinstance(orca_state.lastInputEvent, input_event.KeyboardEvent):
                 string = orca_state.lastNonModifierKeyEvent.event_string



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