[orca] Fall back on displayed text for labels which lack an accessible name
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fall back on displayed text for labels which lack an accessible name
- Date: Wed, 8 Aug 2018 14:10:48 +0000 (UTC)
commit ccb5690e094757d4a4598e8bc410453e9f4adda7
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Aug 8 16:09:07 2018 +0200
Fall back on displayed text for labels which lack an accessible name
src/orca/script_utilities.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 546496471..064490768 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -2303,7 +2303,7 @@ class Utilities:
# Eliminate duplicates and things suspected to be labels for widgets
d = {}
for label in labels:
- name = label.name
+ name = label.name or self.displayedText(label)
if name and name in [rootName, label.parent.name]:
continue
if len(name.split()) < minimumWords:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]