Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-12-10 16:58:42 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-12-14 10:27:48 (GMT)
commita9851016adfc99f5cfa8a1214c465deac5e1d798 (patch)
treef96bced65c25eec7c4eb9fc3973f1a185476e039
parentca2abf19d4c5de6fb0a0977293cc3f021650be35 (diff)
Move the various init method calls inside main
Scattered around code is hard to find and doesn't really improve readability.
-rwxr-xr-xsrc/jarabe/main.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/jarabe/main.py b/src/jarabe/main.py
index fbf1f03..816e53d 100755
--- a/src/jarabe/main.py
+++ b/src/jarabe/main.py
@@ -43,12 +43,6 @@ from gi.repository import Gst
import dbus.glib
from gi.repository import Wnck
-GLib.threads_init()
-Gdk.threads_init()
-dbus.glib.threads_init()
-
-Gst.init(sys.argv)
-
def start_ui_service():
from jarabe.view.service import UIService
@@ -187,6 +181,11 @@ def cleanup_temporary_files():
print 'temporary files cleanup failed: %s' % e
def main():
+ GLib.threads_init()
+ Gdk.threads_init()
+ dbus.glib.threads_init()
+ Gst.init(sys.argv)
+
cleanup_temporary_files()
from sugar3 import logger