[orca] Be less aggressive weeding out layout-only siblings for position and set size
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Be less aggressive weeding out layout-only siblings for position and set size
- Date: Sun, 15 Mar 2015 20:02:03 +0000 (UTC)
commit 184fcdd1c2ea08122d464769e05a0605dd4183cf
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sun Mar 15 16:00:11 2015 -0400
Be less aggressive weeding out layout-only siblings for position and set size
src/orca/script_utilities.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 0f60aaa..21883e0 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -2755,7 +2755,9 @@ class Utilities:
parent = self.getFunctionalParent(obj)
siblings = self.getFunctionalChildren(parent)
- siblings = list(filter(lambda x: not self.isLayoutOnly(x), siblings))
+ layoutRoles = [pyatspi.ROLE_SEPARATOR, pyatspi.ROLE_TEAROFF_MENU_ITEM]
+ isNotLayoutOnly = lambda x: x and not x.getRole() in layoutRoles
+ siblings = list(filter(isNotLayoutOnly, siblings))
if not (siblings and obj in siblings):
return -1, -1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]