Minor fixup for newer GI wanting us to specify versions

This commit is contained in:
Stephen Boddy 2015-11-07 01:15:46 +01:00
parent d4bd916c90
commit 4217a7308f
2 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,7 @@ except OSError:
# Check we have simple basics like Gtk+ and a valid $DISPLAY
try:
import gi
gi.require_version('Gtk','3.0')
# pylint: disable-msg=W0611
from gi.repository import Gtk, Gdk

View File

@ -80,6 +80,8 @@ from borg import Borg
from util import dbg, err, DEBUG, get_config_dir, dict_diff
try:
import gi
gi.require_version('GConf','2.0')
from gi.repository import GConf
except ImportError:
dbg('Unable to import gconf, GNOME defaults unavailable')