summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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