diff --git a/src/Spell.py b/src/Spell.py index 6dd2a583f..da2f6381b 100644 --- a/src/Spell.py +++ b/src/Spell.py @@ -56,9 +56,6 @@ try: except ImportError: HAVE_GTKSPELL = False -if not HAVE_GTKSPELL: - LOG.warn(_("Spelling checker is not installed")) - #------------------------------------------------------------------------- # # GRAMPS classes diff --git a/src/gui/configure.py b/src/gui/configure.py index 79d3e5eb7..95312cd74 100644 --- a/src/gui/configure.py +++ b/src/gui/configure.py @@ -61,6 +61,7 @@ from glade import Glade from gen.plug.utils import available_updates from gui.plug import PluginWindows from Errors import WindowActiveError +from Spell import HAVE_GTKSPELL #------------------------------------------------------------------------- # @@ -283,6 +284,7 @@ class ConfigureDialog(ManagedWindow.ManagedWindow): if extra_callback: checkbox.connect('toggled', extra_callback) table.attach(checkbox, start, stop, index, index+1, yoptions=0) + return checkbox def add_radiobox(self, table, label, index, constant, group, column, config=None): @@ -1086,9 +1088,12 @@ class GrampsPreferences(ConfigureDialog): self.add_checkbox(table, _('Add default source on import'), 0, 'preferences.default-source') - self.add_checkbox(table, + obj = self.add_checkbox(table, _('Enable spelling checker'), 1, 'behavior.spellcheck') + if not HAVE_GTKSPELL: + obj.set_sensitive(False) + obj.set_tooltip_text(_("Spelling checker is not installed")) self.add_checkbox(table, _('Display Tip of the Day'), 2, 'behavior.use-tips')