Skip to content

Add calls to gobject-introspection to prevent PyGIWarnings

Dirk HOFFMANN requested to merge github/fork/kaizoku/master into master

Created by: kaizoku

I was noticing PyGIWarnings being displayed on every call to hamster.

/usr/local/lib/python2.7/dist-packages/hamster/lib/configuration.py:33: PyGIWarning: GConf was imported without specifying a version first. Use gi.require_version('GConf', '2.0') before import to ensure that the right version gets loaded.
/usr/local/lib/python2.7/dist-packages/hamster/lib/configuration.py:33: PyGIWarning: GConf was imported without specifying a version first. Use gi.require_version('GConf', '2.0') before import to ensure that the right version gets loaded.
  from gi.repository import GConf as gconf

This pull request adds the gi.require_version() calls to prevent these warnings.

These warnings are also described in issue https://github.com/projecthamster/hamster/issues/287

Merge request reports

Loading