[orca] Don't generate unrelated labels for objects which implement the document interface
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't generate unrelated labels for objects which implement the document interface
- Date: Tue, 21 Feb 2017 19:17:24 +0000 (UTC)
commit c610bf6aaf4a18b8b0b048cd0a4b0ba4efb16e4c
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Feb 21 14:15:06 2017 -0500
Don't generate unrelated labels for objects which implement the document interface
src/orca/script_utilities.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 72c9b84..cea4db9 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -2052,6 +2052,9 @@ class Utilities:
if 'Table' in pyatspi.listInterfaces(x):
return x.childCount > 50
+ if 'Document' in pyatspi.listInterfaces(x):
+ return True
+
match = pyatspi.findDescendant(root, isMatch)
if match:
msg = "INFO: %s has descendant %s" % (root, match)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]