Commit 58df7d42 authored by Philipp Hörist's avatar Philipp Hörist

Check if Soup is available at startup

parent 0c3ed72e
......@@ -67,12 +67,16 @@ def _init_gui(gui):
def _init_gtk():
import gi
gi.require_version('GLib', '2.0')
gi.require_version('Gio', '2.0')
gi.require_version('Gtk', '3.0')
gi.require_version('Gdk', '3.0')
gi.require_version('GObject', '2.0')
gi.require_version('Pango', '1.0')
try:
gi.require_version('GLib', '2.0')
gi.require_version('Gio', '2.0')
gi.require_version('Gtk', '3.0')
gi.require_version('Gdk', '3.0')
gi.require_version('GObject', '2.0')
gi.require_version('Pango', '1.0')
gi.require_version('Soup', '2.4')
except ValueError as error:
sys.exit('Missing dependency: %s' % error)
from gi.repository import Gtk
gtk_ver = '%s.%s.%s' % (Gtk.get_major_version(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment