jp: updated main loop to gobject 3

This commit is contained in:
Matteo Cypriani 2014-03-05 16:03:04 +01:00
commit f0676dfa52

View file

@ -33,7 +33,7 @@ import sys
import locale
import os.path
import argparse
import gobject
from gi.repository import GLib
from glob import iglob
from importlib import import_module
from sat.tools.jid import JID
@ -154,7 +154,7 @@ class Jp(object):
self._start_loop()
def _start_loop(self):
self.loop = gobject.MainLoop()
self.loop = GLib.MainLoop()
try:
self.loop.run()
except KeyboardInterrupt:
@ -255,7 +255,7 @@ class Jp(object):
def watch_progress(self):
self.pbar = None
gobject.timeout_add(10, self._progress_cb)
GObject.timeout_add(10, self._progress_cb)
def _progress_cb(self):
if self.progress_id: