[orca] Add table-prefixed header role names to roles treated as cells
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Add table-prefixed header role names to roles treated as cells
- Date: Tue, 24 Apr 2018 19:20:15 +0000 (UTC)
commit 7aa78542da640120115c176fedaeda62ad5f75ee
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Apr 24 15:19:27 2018 -0400
Add table-prefixed header role names to roles treated as cells
src/orca/script_utilities.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 098ba08..758d007 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -1172,6 +1172,8 @@ class Utilities:
return False
cellRoles = [pyatspi.ROLE_TABLE_CELL,
+ pyatspi.ROLE_TABLE_COLUMN_HEADER,
+ pyatspi.ROLE_TABLE_ROW_HEADER,
pyatspi.ROLE_COLUMN_HEADER,
pyatspi.ROLE_ROW_HEADER]
if not role in cellRoles:
@@ -1191,6 +1193,8 @@ class Utilities:
return False
cellRoles = [pyatspi.ROLE_TABLE_CELL,
+ pyatspi.ROLE_TABLE_COLUMN_HEADER,
+ pyatspi.ROLE_TABLE_ROW_HEADER,
pyatspi.ROLE_COLUMN_HEADER,
pyatspi.ROLE_ROW_HEADER]
if not role in cellRoles:
@@ -1932,6 +1936,8 @@ class Utilities:
return False
isCell = lambda x: x and x.getRole() in [pyatspi.ROLE_TABLE_CELL,
+ pyatspi.ROLE_TABLE_COLUMN_HEADER,
+ pyatspi.ROLE_TABLE_ROW_HEADER,
pyatspi.ROLE_ROW_HEADER,
pyatspi.ROLE_COLUMN_HEADER]
cellChildren = list(filter(isCell, [x for x in obj]))
@@ -1945,6 +1951,8 @@ class Utilities:
return obj
roles = [pyatspi.ROLE_TABLE_CELL,
+ pyatspi.ROLE_TABLE_COLUMN_HEADER,
+ pyatspi.ROLE_TABLE_ROW_HEADER,
pyatspi.ROLE_COLUMN_HEADER,
pyatspi.ROLE_ROW_HEADER,
pyatspi.ROLE_LIST_ITEM]
@@ -3724,6 +3732,8 @@ class Utilities:
def coordinatesForCell(self, obj):
roles = [pyatspi.ROLE_TABLE_CELL,
+ pyatspi.ROLE_TABLE_COLUMN_HEADER,
+ pyatspi.ROLE_TABLE_ROW_HEADER,
pyatspi.ROLE_COLUMN_HEADER,
pyatspi.ROLE_ROW_HEADER]
if not (obj and obj.getRole() in roles):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]