enable suppression of minor missing-package warning (spell checking)
svn: r23070
This commit is contained in:
parent
e51987aab8
commit
a4ae95f260
@ -142,6 +142,7 @@ register('behavior.date-before-range', 50)
|
||||
register('behavior.generation-depth', 15)
|
||||
register('behavior.ignore-gexiv2', False)
|
||||
register('behavior.ignore-osmgpsmap', False)
|
||||
register('behavior.ignore-spellcheck', False)
|
||||
register('behavior.max-age-prob-alive', 110)
|
||||
register('behavior.max-sib-age-diff', 20)
|
||||
register('behavior.min-generation-years', 13)
|
||||
|
@ -617,6 +617,10 @@ class GrampsPreferences(ConfigureDialog):
|
||||
table, _('Suppress warning when GExiv2 not installed.'),
|
||||
5, 'behavior.ignore-gexiv2')
|
||||
|
||||
self.add_checkbox(
|
||||
table, _('Suppress warning when spell checking not installed.'),
|
||||
6, 'behavior.ignore-spellcheck')
|
||||
|
||||
return _('Warnings'), table
|
||||
|
||||
def _build_name_format_model(self, active):
|
||||
|
@ -70,13 +70,6 @@ elif repository.enumerate_versions("Gtkspell"):
|
||||
except:
|
||||
pass
|
||||
|
||||
if not HAVE_GTKSPELL:
|
||||
LOG.warning(_("GtkSpell not loaded. "
|
||||
"Spell checking will not be available.\n"
|
||||
"To build it for Gramps see http://www.gramps-project.org/"
|
||||
"wiki/index.php?title=GEPS_029:_GTK3-GObject_introspection_"
|
||||
"Conversion#Spell_Check_Install"))
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# GRAMPS classes
|
||||
@ -84,6 +77,13 @@ if not HAVE_GTKSPELL:
|
||||
#-------------------------------------------------------------------------
|
||||
from gramps.gen.config import config
|
||||
|
||||
if (not config.get('behavior.ignore-spellcheck')) and (not HAVE_GTKSPELL):
|
||||
LOG.warning(_("GtkSpell not loaded. "
|
||||
"Spell checking will not be available.\n"
|
||||
"To build it for Gramps see http://www.gramps-project.org/"
|
||||
"wiki/index.php?title=GEPS_029:_GTK3-GObject_introspection_"
|
||||
"Conversion#Spell_Check_Install"))
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Constants
|
||||
|
Loading…
Reference in New Issue
Block a user