Blame SOURCES/0005-Ensure-that-the-right-version-of-Gtk-gets-loaded.patch

a43699
From ab4c282729847338e97d236342d21fabd7cfb3aa Mon Sep 17 00:00:00 2001
a43699
From: Jakub Filak <jfilak@redhat.com>
a43699
Date: Mon, 24 Aug 2015 10:28:39 +0200
a43699
Subject: [PATCH] Ensure that the right version of Gtk gets loaded
a43699
a43699
As suggested by PyGIWarning:
a43699
a43699
    /usr/lib/python3.4/site-packages/pyfros/controls.py:22: PyGIWarning:
a43699
    Gtk was imported without specifying a version first. Use
a43699
    gi.require_version('Gtk', '3.0') before import to ensure that the
a43699
    right version gets loaded.
a43699
          from gi.repository import Gtk
a43699
a43699
Signed-off-by: Jakub Filak <jfilak@redhat.com>
a43699
---
a43699
 src/pyfros/controls.py | 4 ++++
a43699
 1 file changed, 4 insertions(+)
a43699
a43699
diff --git a/src/pyfros/controls.py b/src/pyfros/controls.py
a43699
index 0593ef7..b64cf8b 100644
a43699
--- a/src/pyfros/controls.py
a43699
+++ b/src/pyfros/controls.py
a43699
@@ -15,6 +15,10 @@
a43699
 ## along with this program; if not, write to the Free Software
a43699
 ## Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA  02110-1335  USA
a43699
 
a43699
+# As suggested by a PyGIWarning
a43699
+import gi
a43699
+gi.require_version('Gtk', '3.0')
a43699
+
a43699
 # pylint has troubles importing from gi.repository because
a43699
 # it uses introspection
a43699
 # pylint: disable=E0611
a43699
-- 
a43699
2.5.0
a43699