[pyatspi2] Fix getColumnHeader and getAccessibleAtPoint



commit 340d82dccbb894a55517919cab67a6dcc3466d66
Author: Mike Gorse <mgorse novell com>
Date:   Sat May 1 11:45:01 2010 -0400

    Fix getColumnHeader and getAccessibleAtPoint

 pyatspi/component.py |    2 +-
 pyatspi/table.py     |    5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/pyatspi/component.py b/pyatspi/component.py
index 460ed82..6ab28f8 100644
--- a/pyatspi/component.py
+++ b/pyatspi/component.py
@@ -103,7 +103,7 @@ class Component(Accessible):
                 (name, path) = func(x, y, UInt32(coord_type))
                 if (name == ""):
                         name = self._app_name
-                return self._acc_factory (name, path, interfaces.ATSPI_ACCESSIBLE)
+                return self._acc_factory (name, path, ATSPI_ACCESSIBLE)
 
         def getAlpha(self):
                 """
diff --git a/pyatspi/table.py b/pyatspi/table.py
index 9eb3235..4100f01 100644
--- a/pyatspi/table.py
+++ b/pyatspi/table.py
@@ -127,7 +127,10 @@ class Table(Accessible):
                 if available.
                 """
                 func = self.get_dbus_method("GetColumnHeader", dbus_interface=ATSPI_TABLE)
-                return self._acc_factory (self._app_name, func(index), ATSPI_ACCESSIBLE)
+                (name, path) = func(index)
+                if (name == ""):
+                        name = self._app_name
+                return self._acc_factory (name, path, ATSPI_ACCESSIBLE)
 
         def getIndexAt(self, row, column):
                 """



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]