Minor fixup for newer GI wanting us to specify versions
This commit is contained in:
parent
d4bd916c90
commit
4217a7308f
|
@ -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
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue