Version the GdkX11 import, fixes #4965

The unversioned import results in the following log noise:

    /usr/lib/python2.7/site-packages/sugar3/graphics/window.py:26: PyGIWarning: GdkX11 was imported without specifying a version first. Use gi.require_version('GdkX11', '3.0') before import to ensure that the right version gets loaded.
      from gi.repository import GdkX11
This commit is contained in:
Sam Parkinson 2016-07-12 09:16:22 +10:00
parent 7722015bf9
commit 2522e0b21f
No known key found for this signature in database
GPG Key ID: 34E268B2FA2F8B13

View File

@ -20,6 +20,9 @@
STABLE. STABLE.
""" """
import gi
gi.require_version('GdkX11', '3.0')
from gi.repository import GObject from gi.repository import GObject
from gi.repository import GLib from gi.repository import GLib
from gi.repository import Gdk from gi.repository import Gdk