[pyatspi2] Modify selection interface to use the new out-of-process protocol



commit dba89a5a20ac21e63462c4f07176af80cb841746
Author: Mark Doffman <mark doffman codethink co uk>
Date:   Fri Dec 18 05:21:10 2009 -0800

    Modify selection interface to use the new out-of-process protocol
    for transferring accessible objects.

 pyatspi/selection.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pyatspi/selection.py b/pyatspi/selection.py
index 3746acb..a3e4a00 100644
--- a/pyatspi/selection.py
+++ b/pyatspi/selection.py
@@ -82,7 +82,10 @@ class Selection(Accessible):
                 by selectedChildIndex.
                 """
                 func = self.get_dbus_method("GetSelectedChild", dbus_interface=ATSPI_SELECTION)
-                return self.acc_factory.create_accessible(self._app_name, func(index),
+                (name, path) = func (index)
+                if (name == ""):
+                        name = self._app_name
+                return self.acc_factory.create_accessible(name, path,
                                                           ATSPI_ACCESSIBLE)
 
         def isChildSelected(self, index):



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