[orca] Fix for bgo#533660 - Orca does not display labels for unlabeled XUL entries
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for bgo#533660 - Orca does not display labels for unlabeled XUL entries
- Date: Sat, 22 May 2010 19:32:59 +0000 (UTC)
commit 498a145537bc8b368cfcc78b197b6d13e905adc4
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Sat May 22 15:32:05 2010 -0400
Fix for bgo#533660 - Orca does not display labels for unlabeled XUL entries
.../scripts/toolkits/Gecko/braille_generator.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/braille_generator.py b/src/orca/scripts/toolkits/Gecko/braille_generator.py
index 8932517..9a3760b 100644
--- a/src/orca/scripts/toolkits/Gecko/braille_generator.py
+++ b/src/orca/scripts/toolkits/Gecko/braille_generator.py
@@ -188,8 +188,13 @@ class BrailleGenerator(braille_generator.BrailleGenerator):
# relationship. But, they will make their names be
# the string of the thing labelling them.
#
+ # And certain entries (e.g. in the Downloads window) lack a proper
+ # label, instead prefering to display text within the entry which
+ # is deleted when the widget gets focus. We want to treat this
+ # pseudo label as the actual label.
+ #
if not len(result) \
- and role == pyatspi.ROLE_COMBO_BOX \
+ and role in [pyatspi.ROLE_COMBO_BOX, pyatspi.ROLE_ENTRY] \
and not self._script.inDocumentContent(obj):
result.append(obj.name)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]