GNOME Bugzilla – Bug 757537
Gnome-tweak-tool should call gi.require_version() before importing packages from gi
Last modified: 2015-11-11 18:06:56 UTC
When starting gnome-tweak-tool with gtk 3.18 on Fedora 23 I get these warnings: gnome-tweak-tool.desktop[18089]: /usr/lib/python2.7/site-packages/gtweak/utils.py:31: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded. gnome-tweak-tool.desktop[18089]: /usr/lib/python2.7/site-packages/gtweak/egowrapper.py:22: PyGIWarning: Soup was imported without specifying a version first. Use gi.require_version('Soup', '2.4') before import to ensure that the right version gets loaded. gnome-tweak-tool.desktop[18089]: /usr/lib/python2.7/site-packages/gtweak/egowrapper.py:22: PyGIWarning: SoupGNOME was imported without specifying a version first. Use gi.require_version('SoupGNOME', '2.4') before import to ensure that the right version gets loaded. gnome-tweak-tool.desktop[18089]: /usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_group_xkb.py:22: PyGIWarning: GnomeDesktop was imported without specifying a version first. Use gi.require_version('GnomeDesktop', '3.0') before import to ensure that the right version gets loaded.
Created attachment 315291 [details] [review] Add missing gi.require_version() calls pygobject now warns if we don't explicitly require a version before importing. This adds the missing calls where appropriate. For the pygobject change see https://bugzilla.gnome.org/show_bug.cgi?id=727379 .
Attachment 315291 [details] pushed as 849b267 - Add missing gi.require_version() calls