# HG changeset patch # User Matteo Cypriani # Date 1394031784 -3600 # Node ID 9720d3d0a76451171c2954fab0d749fcd1d0dd9c # Parent dc0db078ed19561403b734aad72164507113c474 jp: updated main loop to gobject 3 diff -r dc0db078ed19 -r 9720d3d0a764 frontends/src/jp/base.py --- 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: