[orca] Add some additional debugging
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Add some additional debugging
- Date: Fri, 2 Sep 2016 21:39:09 +0000 (UTC)
commit f683e4d29bc3c660fd8e318c4806915b5217384f
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Sep 2 17:38:04 2016 -0400
Add some additional debugging
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 5046bc4..eb6c8eb 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -3506,10 +3506,15 @@ class Utilities:
except:
return []
+ msg = "INFO: %s has %i rows" % (obj, nRows)
+ debug.println(debug.LEVEL_INFO, msg, True)
+
x, y, width, height = boundingbox
cell = self.descendantAtPoint(obj, x, y + 1)
row, col = self.coordinatesForCell(cell)
startIndex = max(0, row)
+ msg = "INFO: First cell: %s (row: %i)" % (cell, row)
+ debug.println(debug.LEVEL_INFO, msg, True)
# Just in case the row above is a static header row in a scrollable table.
try:
@@ -3520,9 +3525,14 @@ class Utilities:
cell = self.descendantAtPoint(obj, x, y + extents.height + 1)
row, col = self.coordinatesForCell(cell)
nextIndex = max(startIndex, row)
+ msg = "INFO: Next cell: %s (row: %i)" % (cell, row)
+ debug.println(debug.LEVEL_INFO, msg, True)
cell = self.descendantAtPoint(obj, x, y + height - 1)
row, col = self.coordinatesForCell(cell)
+ msg = "INFO: Last cell: %s (row: %i)" % (cell, row)
+ debug.println(debug.LEVEL_INFO, msg, True)
+
if row == -1:
row = nRows
endIndex = row
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]