Move missing Gtk Spell warning

svn: r23222
This commit is contained in:
Nick Hall 2013-09-30 12:43:09 +00:00
parent ad3461142d
commit 4b1cb486ec
2 changed files with 6 additions and 4 deletions

View File

@ -56,9 +56,6 @@ try:
except ImportError:
HAVE_GTKSPELL = False
if not HAVE_GTKSPELL:
LOG.warn(_("Spelling checker is not installed"))
#-------------------------------------------------------------------------
#
# GRAMPS classes

View File

@ -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')