Further gi.require_version calls

Activity logs have continued to report GObject Introspection version
warnings.
This commit is contained in:
James Cameron 2016-11-09 12:09:44 +11:00
parent 3b3c3310a9
commit ee93ad3bef
2 changed files with 10 additions and 2 deletions

View File

@ -64,9 +64,14 @@ import StringIO
import cairo import cairo
import json import json
from gi.repository import Gtk import gi
from gi.repository import Gdk gi.require_version('Gtk', '3.0')
gi.require_version('Gdk', '3.0')
gi.require_version('SugarExt', '1.0')
from gi.repository import GObject from gi.repository import GObject
from gi.repository import Gdk
from gi.repository import Gtk
import dbus import dbus
import dbus.service import dbus.service
from dbus import PROPERTIES_IFACE from dbus import PROPERTIES_IFACE

View File

@ -26,6 +26,9 @@ STABLE.
import logging import logging
import math import math
import gi
gi.require_version('SugarGestures', '1.0')
from gi.repository import Gdk from gi.repository import Gdk
from gi.repository import Gtk from gi.repository import Gtk
from gi.repository import GObject from gi.repository import GObject