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.
This commit is contained in:
parent
45cc6502dd
commit
04a1ff181f
@ -95,6 +95,7 @@ from ConfigParser import ConfigParser
|
|||||||
|
|
||||||
import gi
|
import gi
|
||||||
gi.require_version('Rsvg', '2.0')
|
gi.require_version('Rsvg', '2.0')
|
||||||
|
gi.require_version('Gtk', '3.0')
|
||||||
from gi.repository import GObject
|
from gi.repository import GObject
|
||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
from gi.repository import Gdk
|
from gi.repository import Gdk
|
||||||
|
Loading…
Reference in New Issue
Block a user