[orca] Don't re-present description if it was used as name fallback
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't re-present description if it was used as name fallback
- Date: Sat, 26 Mar 2016 17:30:26 +0000 (UTC)
commit 6f4ebc594f041a9ccfe314343ce38682f3bb5aca
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sat Mar 26 13:29:57 2016 -0400
Don't re-present description if it was used as name fallback
src/orca/generator.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/generator.py b/src/orca/generator.py
index a40d4e2..374c0cd 100644
--- a/src/orca/generator.py
+++ b/src/orca/generator.py
@@ -308,6 +308,7 @@ class Generator:
return result
if description:
result.append(description)
+ self._script.pointOfReference['usedDescriptionForName'] = True
else:
link = None
if obj.getRole() == pyatspi.ROLE_LINK:
@@ -373,6 +374,9 @@ class Generator:
is different from that of the name and label.
"""
+ if self._script.pointOfReference.get('usedDescriptionForName'):
+ return []
+
role = args.get('role', obj.getRole())
# The text in the description is the same as the text in the page
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]