From b4acd644a7f314ab83c6af20eeff081188450a76 Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Mon, 10 Dec 2012 16:58:42 +0000 Subject: Move the various init method calls inside main Scattered around code is hard to find and doesn't really improve readability. Acked-by: Simon Schampijer --- 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 -- cgit v0.9.1