From 1dfd067e5271c851d69f49b9dcad54137e440533 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Wed, 6 Feb 2013 09:24:15 +0000 Subject: [PATCH] use latest gtkspell if available svn: r21309 --- gramps/gui/spell.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gramps/gui/spell.py b/gramps/gui/spell.py index a44bfe10f..ebaac65b4 100644 --- a/gramps/gui/spell.py +++ b/gramps/gui/spell.py @@ -57,15 +57,15 @@ HAVE_GTKSPELL = False # Attempting to import gtkspell gives an error dialog if gtkspell is not # available so test first and log just a warning to the console instead. repository = Repository.get_default() -if repository.enumerate_versions("Gtkspell"): +if repository.enumerate_versions("GtkSpell"): try: - from gi.repository import Gtkspell + from gi.repository import GtkSpell as Gtkspell HAVE_GTKSPELL = True except: pass -elif repository.enumerate_versions("GtkSpell"): +elif repository.enumerate_versions("Gtkspell"): try: - from gi.repository import GtkSpell as Gtkspell + from gi.repository import Gtkspell HAVE_GTKSPELL = True except: pass