[orca/gnome-3-14] Delete some unneeded methods
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-14] Delete some unneeded methods
- Date: Sat, 6 Sep 2014 02:07:37 +0000 (UTC)
commit 1a8cd963943077a404ec145703ec846ce7b3dd1e
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Sep 5 22:06:34 2014 -0400
Delete some unneeded methods
src/orca/structural_navigation.py | 52 +-----------------------------------
1 files changed, 2 insertions(+), 50 deletions(-)
---
diff --git a/src/orca/structural_navigation.py b/src/orca/structural_navigation.py
index 3f00972..5378731 100644
--- a/src/orca/structural_navigation.py
+++ b/src/orca/structural_navigation.py
@@ -1353,14 +1353,14 @@ class StructuralNavigation:
if not (oldRowHeaders or oldColHeaders):
return
- if rowDiff and not self._isInHeaderRow(cell):
+ if rowDiff and not self._isHeader(cell):
rowHeaders = self._getRowHeaders(cell)
for header in rowHeaders:
if not header in oldRowHeaders:
text = self._getCellText(header)
speech.speak(text)
- if colDiff:
+ if colDiff and not self._isHeader(cell):
colHeaders = self._getColumnHeaders(cell)
for header in colHeaders:
if not header in oldColHeaders:
@@ -1520,54 +1520,6 @@ class StructuralNavigation:
return columnHeaders
- def _isInHeaderRow(self, obj):
- """Returns True if all of the cells in the same row as this cell are
- headers.
-
- Arguments:
- - obj: the accessible table cell whose row is to be examined.
- """
-
- if obj and obj.getRole() == pyatspi.ROLE_TABLE_CELL:
- parentTable = self.getTableForCell(obj)
- try:
- table = parentTable.queryTable()
- except:
- return True
-
- index = self._script.utilities.cellIndex(obj)
- row = table.getRowAtIndex(index)
- for col in range(table.nColumns):
- cell = table.getAccessibleAt(row, col)
- if not self._isHeader(cell):
- return False
-
- return True
-
- def _isInHeaderColumn(self, obj):
- """Returns True if all of the cells in the same column as this cell
- are headers.
-
- Arguments:
- - obj: the accessible table cell whose column is to be examined.
- """
-
- if obj and obj.getRole() == pyatspi.ROLE_TABLE_CELL:
- parentTable = self.getTableForCell(obj)
- try:
- table = parentTable.queryTable()
- except:
- return True
-
- index = self._script.utilities.cellIndex(obj)
- col = table.getColumnAtIndex(index)
- for row in range(table.nRows):
- cell = table.getAccessibleAt(row, col)
- if not self._isHeader(cell):
- return False
-
- return True
-
def _isHeader(self, obj):
"""Returns True if the table cell is a header.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]