From 880a583a0f061b8be4be9d0ab4912b12d3cc3ecf Mon Sep 17 00:00:00 2001 From: Sam Manzi Date: Sat, 23 Apr 2016 10:17:52 +1000 Subject: [PATCH] 8981 Specify required GtkSpell and GExiv2 version --- gramps/grampsapp.py | 2 ++ gramps/gui/spell.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/gramps/grampsapp.py b/gramps/grampsapp.py index 782a406b0..ef06b0490 100644 --- a/gramps/grampsapp.py +++ b/gramps/grampsapp.py @@ -259,6 +259,8 @@ def show_settings(): from gi import Repository repository = Repository.get_default() if repository.enumerate_versions("GExiv2"): + import gi + gi.require_version('GExiv2', '0.10') from gi.repository import GExiv2 try: gexiv2_str = GExiv2._version diff --git a/gramps/gui/spell.py b/gramps/gui/spell.py index 404eb96ea..bf8d1e5a9 100644 --- a/gramps/gui/spell.py +++ b/gramps/gui/spell.py @@ -58,12 +58,16 @@ HAVE_GTKSPELL = False repository = Repository.get_default() if repository.enumerate_versions("GtkSpell"): try: + import gi + gi.require_version('GtkSpell', '3.0') from gi.repository import GtkSpell as Gtkspell HAVE_GTKSPELL = True except: pass elif repository.enumerate_versions("Gtkspell"): try: + import gi + gi.require_version('GtkSpell', '3.0') from gi.repository import Gtkspell HAVE_GTKSPELL = True except: