[pyatspi2] Hide children attribute to prevent crash, and add pumpQueuedEvents stub



commit 5d2ea6713b3a060f9b65e47a73258c2b840f613b
Author: Mike Gorse <mgorse novell com>
Date:   Tue Dec 28 09:35:31 2010 -0500

    Hide children attribute to prevent crash, and add pumpQueuedEvents stub

 pyatspi/Accessibility.py |    1 +
 pyatspi/registry.py      |    7 +++++++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/pyatspi/Accessibility.py b/pyatspi/Accessibility.py
index e69d759..a4b28da 100644
--- a/pyatspi/Accessibility.py
+++ b/pyatspi/Accessibility.py
@@ -103,6 +103,7 @@ Atspi.Accessible.getRelationSet = Atspi.Accessible.get_relation_set
 Atspi.Accessible.getRole = Atspi.Accessible.get_role
 Atspi.Accessible.getRoleName = Atspi.Accessible.get_role_name
 Atspi.Accessible.getState = Atspi.Accessible.get_state_set
+del Atspi.Accessible.children
 Atspi.Accessible.description = property(fget=Atspi.Accessible.get_description)
 Atspi.Accessible.name = property(fget=Atspi.Accessible.get_name)
 Atspi.Accessible.isEqual = lambda a,b: a == b
diff --git a/pyatspi/registry.py b/pyatspi/registry.py
index a25557e..4d882bc 100644
--- a/pyatspi/registry.py
+++ b/pyatspi/registry.py
@@ -393,6 +393,13 @@ class Registry(object):
                         self._set_default_registry ()
                 Atspi.generate_mouse_event (x, y, name)
 
+
+        def pumpQueuedEvents (self):
+                """
+                Dispatch events that have been queued.
+                """
+                pass
+
 def set_default_registry (main_loop, app_name=None):
         registry = Registry ()
         registry._set_registry (main_loop, app_name)



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