~super-friends/friends/13.10

« back to all changes in this revision

Viewing changes to friends/main.py

  • Committer: Tarmac
  • Author(s): Robert Bruce Park
  • Date: 2013-06-20 03:49:01 UTC
  • mfrom: (207.2.1 threads_init)
  • Revision ID: tarmac-20130620034901-ptfdrp7ot5du2u4k
Stop calling deprecated GObject.threads_init().

Approved by PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
# Set up the DBus main loop.
33
33
from dbus.mainloop.glib import DBusGMainLoop
34
 
from gi.repository import GLib
 
34
from gi.repository import GLib, Gio
35
35
 
36
36
DBusGMainLoop(set_as_default=True)
37
37
loop = GLib.MainLoop()
56
56
 
57
57
 
58
58
# Continue with normal loading...
59
 
from gi.repository import Gio, GObject
60
 
 
61
 
GObject.threads_init()
62
 
 
63
59
from friends.service.dispatcher import Dispatcher, DBUS_INTERFACE
64
60
from friends.utils.base import Base, initialize_caches, _publish_lock
65
61
from friends.utils.model import Model, prune_model