diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-07-31 05:15:58 -0400 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-09-24 13:22:13 +0200 |
commit | 3e5cab551a504c2ba1aca732148d8901897d5797 (patch) | |
tree | 05e2b83f81bcb0326a07263002419612d0f437f1 /usr/share | |
parent | 04ff8c5f00afd624ab525704054b0e033867ef34 (diff) | |
download | mageiawelcome-3e5cab551a504c2ba1aca732148d8901897d5797.tar mageiawelcome-3e5cab551a504c2ba1aca732148d8901897d5797.tar.gz mageiawelcome-3e5cab551a504c2ba1aca732148d8901897d5797.tar.bz2 mageiawelcome-3e5cab551a504c2ba1aca732148d8901897d5797.tar.xz mageiawelcome-3e5cab551a504c2ba1aca732148d8901897d5797.zip |
fix a deprecation warning
Diffstat (limited to 'usr/share')
-rw-r--r-- | usr/share/mageiawelcome/webgui.py | 6 |
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 |