[orca] Fallback on displayed text when flat-reviewing icons that lack name and description
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fallback on displayed text when flat-reviewing icons that lack name and description
- Date: Sat, 14 Sep 2013 18:28:30 +0000 (UTC)
commit c98e19f6655f5c4b76e649af29b2db87d5e56df5
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sat Sep 14 14:27:19 2013 -0400
Fallback on displayed text when flat-reviewing icons that lack name and description
src/orca/flat_review.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/flat_review.py b/src/orca/flat_review.py
index b37939d..d50a9dc 100644
--- a/src/orca/flat_review.py
+++ b/src/orca/flat_review.py
@@ -1192,6 +1192,9 @@ class Context:
elif accessible.description and len(accessible.description):
string = accessible.description
+ if not string and role == pyatspi.ROLE_ICON:
+ string = self.script.utilities.displayedText(accessible)
+
if (string == "") \
and (role != pyatspi.ROLE_TABLE_CELL):
string = accessible.getRoleName()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]