[orca] Fix for bug #654426 - The speech generator's _generateAncestors() method needs to handle page tabs w



commit 2003157ab37643a6b11a55b2d5c6c01d8fdc4a53
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Mon Jul 11 18:41:15 2011 -0400

    Fix for bug #654426 - The speech generator's _generateAncestors() method needs to handle page tabs which do not implement AtkText

 src/orca/speech_generator.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/speech_generator.py b/src/orca/speech_generator.py
index 3a54b4d..842ac08 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -1527,7 +1527,8 @@ class SpeechGenerator(generator.Generator):
                             or (requireText \
                                 and 'Text' in pyatspi.listInterfaces(parent))):
                         text = self._script.utilities.displayedText(parent)
-                    if not text and parent.getRole() == pyatspi.ROLE_MENU:
+                    if not text and parent.getRole() \
+                           in [pyatspi.ROLE_MENU, pyatspi.ROLE_PAGE_TAB]:
                         text = parent.name
                     if text and len(text.strip()):
                         roleInfo = self._generateRoleName(parent)



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