summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-07-31 05:14:14 -0400
committerThierry Vignaud <thierry.vignaud@gmail.com>2015-09-24 13:22:13 +0200
commit04ff8c5f00afd624ab525704054b0e033867ef34 (patch)
treec2ca9a91b1c1b53d829de5329c56d21d87e241de /usr
parentcda600c471265e78626673d66f37ea5a35e558f7 (diff)
downloadmageiawelcome-04ff8c5f00afd624ab525704054b0e033867ef34.tar
mageiawelcome-04ff8c5f00afd624ab525704054b0e033867ef34.tar.gz
mageiawelcome-04ff8c5f00afd624ab525704054b0e033867ef34.tar.bz2
mageiawelcome-04ff8c5f00afd624ab525704054b0e033867ef34.tar.xz
mageiawelcome-04ff8c5f00afd624ab525704054b0e033867ef34.zip
fix import warnings with latest gi
Diffstat (limited to 'usr')
-rw-r--r--usr/share/mageiawelcome/mageiawelcome.py2
-rw-r--r--usr/share/mageiawelcome/webgui.py2
2 files changed, 4 insertions, 0 deletions
diff --git a/usr/share/mageiawelcome/mageiawelcome.py b/usr/share/mageiawelcome/mageiawelcome.py
index 5132419..5fbfad0 100644
--- a/usr/share/mageiawelcome/mageiawelcome.py
+++ b/usr/share/mageiawelcome/mageiawelcome.py
@@ -9,6 +9,8 @@ import subprocess
import shlex
import gettext
import string
+import gi
+gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
from user import home
diff --git a/usr/share/mageiawelcome/webgui.py b/usr/share/mageiawelcome/webgui.py
index a63314d..5f2ae6d 100644
--- a/usr/share/mageiawelcome/webgui.py
+++ b/usr/share/mageiawelcome/webgui.py
@@ -3,11 +3,13 @@ import Queue
import thread
import urllib
+import gi
from gi.repository import Gdk
from gi.repository import Gtk
from gi.repository import GObject
try:
+ gi.require_version('WebKit', '3.0')
from gi.repository import WebKit
have_webkit = True
except: