use latest gtkspell if available
svn: r21308
This commit is contained in:
parent
3ee843917e
commit
eadae6dbc9
@ -56,15 +56,15 @@ HAVE_GTKSPELL = False
|
|||||||
# Attempting to import gtkspell gives an error dialog if gtkspell is not
|
# 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.
|
# available so test first and log just a warning to the console instead.
|
||||||
repository = Repository.get_default()
|
repository = Repository.get_default()
|
||||||
if repository.enumerate_versions("Gtkspell"):
|
if repository.enumerate_versions("GtkSpell"):
|
||||||
try:
|
try:
|
||||||
from gi.repository import Gtkspell
|
from gi.repository import GtkSpell as Gtkspell
|
||||||
HAVE_GTKSPELL = True
|
HAVE_GTKSPELL = True
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
elif repository.enumerate_versions("GtkSpell"):
|
elif repository.enumerate_versions("Gtkspell"):
|
||||||
try:
|
try:
|
||||||
from gi.repository import GtkSpell as Gtkspell
|
from gi.repository import Gtkspell
|
||||||
HAVE_GTKSPELL = True
|
HAVE_GTKSPELL = True
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user