8981 Specify required GtkSpell and GExiv2 version
This commit is contained in:
parent
88bdc33051
commit
880a583a0f
@ -259,6 +259,8 @@ def show_settings():
|
|||||||
from gi import Repository
|
from gi import Repository
|
||||||
repository = Repository.get_default()
|
repository = Repository.get_default()
|
||||||
if repository.enumerate_versions("GExiv2"):
|
if repository.enumerate_versions("GExiv2"):
|
||||||
|
import gi
|
||||||
|
gi.require_version('GExiv2', '0.10')
|
||||||
from gi.repository import GExiv2
|
from gi.repository import GExiv2
|
||||||
try:
|
try:
|
||||||
gexiv2_str = GExiv2._version
|
gexiv2_str = GExiv2._version
|
||||||
|
@ -58,12 +58,16 @@ HAVE_GTKSPELL = False
|
|||||||
repository = Repository.get_default()
|
repository = Repository.get_default()
|
||||||
if repository.enumerate_versions("GtkSpell"):
|
if repository.enumerate_versions("GtkSpell"):
|
||||||
try:
|
try:
|
||||||
|
import gi
|
||||||
|
gi.require_version('GtkSpell', '3.0')
|
||||||
from gi.repository import GtkSpell as 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:
|
||||||
|
import gi
|
||||||
|
gi.require_version('GtkSpell', '3.0')
|
||||||
from gi.repository import Gtkspell
|
from gi.repository import Gtkspell
|
||||||
HAVE_GTKSPELL = True
|
HAVE_GTKSPELL = True
|
||||||
except:
|
except:
|
||||||
|
Loading…
Reference in New Issue
Block a user