[pyatspi2] Fix inconsistencies in Table interface introduced by out-of-process
- From: Mark Doffman <markdoffman src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pyatspi2] Fix inconsistencies in Table interface introduced by out-of-process
- Date: Fri, 18 Dec 2009 17:41:29 +0000 (UTC)
commit bfb2621e2a5b085dbd889efffc0b8aa63308b374
Author: Mark Doffman <mark doffman codethink co uk>
Date: Fri Dec 18 05:39:36 2009 -0800
Fix inconsistencies in Table interface introduced by out-of-process
and method name changes in the protocol.
pyatspi/table.py | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/pyatspi/table.py b/pyatspi/table.py
index 7151d44..41c5bf6 100644
--- a/pyatspi/table.py
+++ b/pyatspi/table.py
@@ -71,7 +71,7 @@ class Table(Accessible):
@return an Accessible object representing the specified table
cell.
"""
- func = self.get_dbus_method("getAccessibleAt", dbus_interface=ATSPI_TABLE)
+ func = self.get_dbus_method("GetAccessibleAt", dbus_interface=ATSPI_TABLE)
(name, path) = func(row, column)
if (name == ""):
name = self._app_name
@@ -127,7 +127,7 @@ class Table(Accessible):
@return an Accessible representatin of the specified table column,
if available.
"""
- func = self.get_dbus_method("getColumnHeader", dbus_interface=ATSPI_TABLE)
+ func = self.get_dbus_method("GetColumnHeader", dbus_interface=ATSPI_TABLE)
return self.acc_factory.create_accessible(self._app_name, func(index),
interfaces.ATSPI_ACCESSIBLE)
@@ -232,8 +232,11 @@ class Table(Accessible):
@return an Accessible representatin of the specified table row,
if available.
"""
- func = self.get_dbus_method("getRowHeader", dbus_interface=ATSPI_TABLE)
- return self.acc_factory.create_accessible(self._app_name, func(row),
+ func = self.get_dbus_method("GetRowHeader", dbus_interface=ATSPI_TABLE)
+ (name, path) = func (row)
+ if (name == ""):
+ name = self._app_name
+ return self.acc_factory.create_accessible(name, path,
interfaces.ATSPI_ACCESSIBLE)
def getSelectedColumns(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]