[orca] Filter out more layout tables
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Filter out more layout tables
- Date: Wed, 15 Jan 2014 20:02:50 +0000 (UTC)
commit 950ba72d75fe6a97e042485ed44ef593ff3106f6
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Jan 15 15:02:09 2014 -0500
Filter out more layout tables
src/orca/script_utilities.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 32cabf7..4dbfeb0 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -782,7 +782,10 @@ class Utilities:
layoutOnly = True
break
elif role == pyatspi.ROLE_TABLE_CELL and obj.childCount:
- layoutOnly = obj[0].getRole() == pyatspi.ROLE_TABLE_CELL
+ if obj[0].getRole() == pyatspi.ROLE_TABLE_CELL:
+ layoutOnly = True
+ elif obj.parent.getRole() == pyatspi.ROLE_TABLE:
+ layoutOnly = self.isLayoutOnly(obj.parent)
elif role == pyatspi.ROLE_FILLER:
layoutOnly = True
elif role == pyatspi.ROLE_SCROLL_PANE:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]