[pyatspi2] Set the GLib main loop as default on importing registry.



commit dc6620d39e62492cfe1f3468973fa9b93f4f723a
Author: Mark Doffman <mark doffman codethink co uk>
Date:   Mon Nov 9 10:59:50 2009 +0000

    Set the GLib main loop as default on importing registry.
    
    This is TEMPORARY until there are more main loops.

 pyatspi/registry.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/pyatspi/registry.py b/pyatspi/registry.py
index 726d8ae..891fc27 100644
--- a/pyatspi/registry.py
+++ b/pyatspi/registry.py
@@ -44,6 +44,11 @@ __all__ = ["Registry",
            "MAIN_LOOP_NONE",
            "MAIN_LOOP_QT"]
 
+import gobject
+from dbus.mainloop.glib import DBusGMainLoop
+DBusGMainLoop (set_as_default=True)
+del DBusGMainLoop
+
 #------------------------------------------------------------------------------
 
 MAIN_LOOP_GLIB = 'GLib'



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