[orca/gnome-3-22] Add some additional debugging



commit 37c3f1f1a3642842b985e241372dbbd1f61bb4c5
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]