[orca/gnome-2-26] Partial fix for bug 568658



commit fe4926dfc8977c704c28a90f77e8b3b6cce28979
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 982eb33..33caae1 100644
--- a/src/orca/scripts/apps/Thunderbird/script.py
+++ b/src/orca/scripts/apps/Thunderbird/script.py
@@ -354,12 +354,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]