changeset 898:9720d3d0a764

jp: updated main loop to gobject 3
author Matteo Cypriani <mcy@lm7.fr>
date Wed, 05 Mar 2014 16:03:04 +0100
parents dc0db078ed19
children 7565d3ac0a96
files frontends/src/jp/base.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/jp/base.py	Tue Mar 04 01:24:15 2014 +0100
+++ b/frontends/src/jp/base.py	Wed Mar 05 16:03:04 2014 +0100
@@ -33,7 +33,7 @@
 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 @@
             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 @@
 
     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: