enable suppression of minor missing-package warning (spell checking)

svn: r23070
This commit is contained in:
Paul Franklin 2013-09-09 20:55:25 +00:00
parent e51987aab8
commit a4ae95f260
3 changed files with 12 additions and 7 deletions

View File

@ -142,6 +142,7 @@ register('behavior.date-before-range', 50)
register('behavior.generation-depth', 15) register('behavior.generation-depth', 15)
register('behavior.ignore-gexiv2', False) register('behavior.ignore-gexiv2', False)
register('behavior.ignore-osmgpsmap', False) register('behavior.ignore-osmgpsmap', False)
register('behavior.ignore-spellcheck', False)
register('behavior.max-age-prob-alive', 110) register('behavior.max-age-prob-alive', 110)
register('behavior.max-sib-age-diff', 20) register('behavior.max-sib-age-diff', 20)
register('behavior.min-generation-years', 13) register('behavior.min-generation-years', 13)

View File

@ -617,6 +617,10 @@ class GrampsPreferences(ConfigureDialog):
table, _('Suppress warning when GExiv2 not installed.'), table, _('Suppress warning when GExiv2 not installed.'),
5, 'behavior.ignore-gexiv2') 5, 'behavior.ignore-gexiv2')
self.add_checkbox(
table, _('Suppress warning when spell checking not installed.'),
6, 'behavior.ignore-spellcheck')
return _('Warnings'), table return _('Warnings'), table
def _build_name_format_model(self, active): def _build_name_format_model(self, active):

View File

@ -70,13 +70,6 @@ elif repository.enumerate_versions("Gtkspell"):
except: except:
pass 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 # GRAMPS classes
@ -84,6 +77,13 @@ if not HAVE_GTKSPELL:
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from gramps.gen.config import config 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 # Constants