summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-07-31 05:15:58 -0400
committerThierry Vignaud <thierry.vignaud@gmail.com>2015-09-24 13:22:13 +0200
commit3e5cab551a504c2ba1aca732148d8901897d5797 (patch)
tree05e2b83f81bcb0326a07263002419612d0f437f1
parent04ff8c5f00afd624ab525704054b0e033867ef34 (diff)
downloadmageiawelcome-3e5cab551a504c2ba1aca732148d8901897d5797.tar
mageiawelcome-3e5cab551a504c2ba1aca732148d8901897d5797.tar.gz
mageiawelcome-3e5cab551a504c2ba1aca732148d8901897d5797.tar.bz2
mageiawelcome-3e5cab551a504c2ba1aca732148d8901897d5797.tar.xz
mageiawelcome-3e5cab551a504c2ba1aca732148d8901897d5797.zip
fix a deprecation warning
-rw-r--r--usr/share/mageiawelcome/webgui.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/share/mageiawelcome/webgui.py b/usr/share/mageiawelcome/webgui.py
index 5f2ae6d..c6888fa 100644
--- a/usr/share/mageiawelcome/webgui.py
+++ b/usr/share/mageiawelcome/webgui.py
@@ -6,7 +6,7 @@ import urllib
import gi
from gi.repository import Gdk
from gi.repository import Gtk
-from gi.repository import GObject
+from gi.repository import GLib
try:
gi.require_version('WebKit', '3.0')
@@ -51,7 +51,7 @@ def asynchronous_gtk_message(fun):
apply(function, args, kwargs)
def fun2(*args, **kwargs):
- GObject.idle_add(worker, (fun, args, kwargs))
+ GLib.idle_add(worker, (fun, args, kwargs))
return fun2
@@ -65,7 +65,7 @@ def synchronous_gtk_message(fun):
def fun2(*args, **kwargs):
class R: result = NoResult
- GObject.idle_add(worker, (R, fun, args, kwargs))
+ GLib.idle_add(worker, (R, fun, args, kwargs))
while R.result is NoResult: time.sleep(0.01)
return R.result