diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-10 16:58:42 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@laptop.org> | 2013-01-22 09:29:58 (GMT) |
commit | b4acd644a7f314ab83c6af20eeff081188450a76 (patch) | |
tree | b202b867ee5932cd19751f0c14d8e1560eb7666a | |
parent | 5587db6c59a4221cc79eaa9c3ee85163a6e5883d (diff) |
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 <simon@laptop.org>
-rwxr-xr-x | src/jarabe/main.py | 11 |
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 |