From 3e5cab551a504c2ba1aca732148d8901897d5797 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 31 Jul 2015 05:15:58 -0400 Subject: fix a deprecation warning --- usr/share/mageiawelcome/webgui.py | 6 +++--- 1 file 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 -- cgit v1.2.1