[orca] Move the last python-dbus bits out of orca.py



commit 52bbdfc3aefda5c987e66b20afb150670a35a168
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri May 4 23:23:44 2012 -0400

    Move the last python-dbus bits out of orca.py

 src/orca/dbusserver.py |    2 ++
 src/orca/orca.py       |    3 ---
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/dbusserver.py b/src/orca/dbusserver.py
index e3bf32e..c6fce3c 100644
--- a/src/orca/dbusserver.py
+++ b/src/orca/dbusserver.py
@@ -27,6 +27,8 @@ __license__   = "LGPL"
 
 import dbus
 import dbus.service
+import dbus.mainloop.glib
+dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
 
 import debug
 import settings
diff --git a/src/orca/orca.py b/src/orca/orca.py
index db41533..270de2e 100644
--- a/src/orca/orca.py
+++ b/src/orca/orca.py
@@ -409,10 +409,7 @@ try:
 except RuntimeError:
     pass
 
-print settings.useDBus
 if settings.useDBus:
-    import dbus.mainloop.glib
-    dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
     import dbusserver
 
 import braille



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