From 04a1ff181f2ba103698331fa47556aae4e431107 Mon Sep 17 00:00:00 2001 From: James Cameron Date: Tue, 3 Oct 2017 13:29:00 +1100 Subject: [PATCH] Fix Python GI API version warning in Wikipedia The Wikipedia activity imports from sugar3.graphics.icon without any other use of GTK+, causing a version warning. --- src/sugar3/graphics/icon.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sugar3/graphics/icon.py b/src/sugar3/graphics/icon.py index 8864bee3..71354e2a 100644 --- a/src/sugar3/graphics/icon.py +++ b/src/sugar3/graphics/icon.py @@ -95,6 +95,7 @@ from ConfigParser import ConfigParser import gi gi.require_version('Rsvg', '2.0') +gi.require_version('Gtk', '3.0') from gi.repository import GObject from gi.repository import Gtk from gi.repository import Gdk