[orca] Work around icons which incorrectly implement accessible text
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Work around icons which incorrectly implement accessible text
- Date: Tue, 13 Dec 2016 17:21:20 +0000 (UTC)
commit 056f6657929b2bf652cf9079ff7c8d8e27adb083
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Dec 13 12:15:59 2016 -0500
Work around icons which incorrectly implement accessible text
src/orca/generator.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/generator.py b/src/orca/generator.py
index 2797436..b2ecc16 100644
--- a/src/orca/generator.py
+++ b/src/orca/generator.py
@@ -393,10 +393,14 @@ class Generator:
if role == pyatspi.ROLE_LABEL:
return []
+ if role == pyatspi.ROLE_ICON:
+ name = self._script.utilities.displayedText(obj) or ""
+ else:
+ name = obj.name or ""
+
result = []
if obj.description:
label = self._script.utilities.displayedLabel(obj) or ""
- name = obj.name or ""
desc = obj.description.lower()
if not (desc in name.lower() or desc in label.lower()):
result.append(obj.description)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]