Move missing Gtk Spell warning
svn: r23222
This commit is contained in:
parent
ad3461142d
commit
4b1cb486ec
@ -56,9 +56,6 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
HAVE_GTKSPELL = False
|
HAVE_GTKSPELL = False
|
||||||
|
|
||||||
if not HAVE_GTKSPELL:
|
|
||||||
LOG.warn(_("Spelling checker is not installed"))
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# GRAMPS classes
|
# GRAMPS classes
|
||||||
|
@ -61,6 +61,7 @@ from glade import Glade
|
|||||||
from gen.plug.utils import available_updates
|
from gen.plug.utils import available_updates
|
||||||
from gui.plug import PluginWindows
|
from gui.plug import PluginWindows
|
||||||
from Errors import WindowActiveError
|
from Errors import WindowActiveError
|
||||||
|
from Spell import HAVE_GTKSPELL
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -283,6 +284,7 @@ class ConfigureDialog(ManagedWindow.ManagedWindow):
|
|||||||
if extra_callback:
|
if extra_callback:
|
||||||
checkbox.connect('toggled', extra_callback)
|
checkbox.connect('toggled', extra_callback)
|
||||||
table.attach(checkbox, start, stop, index, index+1, yoptions=0)
|
table.attach(checkbox, start, stop, index, index+1, yoptions=0)
|
||||||
|
return checkbox
|
||||||
|
|
||||||
def add_radiobox(self, table, label, index, constant, group, column,
|
def add_radiobox(self, table, label, index, constant, group, column,
|
||||||
config=None):
|
config=None):
|
||||||
@ -1086,9 +1088,12 @@ class GrampsPreferences(ConfigureDialog):
|
|||||||
self.add_checkbox(table,
|
self.add_checkbox(table,
|
||||||
_('Add default source on import'),
|
_('Add default source on import'),
|
||||||
0, 'preferences.default-source')
|
0, 'preferences.default-source')
|
||||||
self.add_checkbox(table,
|
obj = self.add_checkbox(table,
|
||||||
_('Enable spelling checker'),
|
_('Enable spelling checker'),
|
||||||
1, 'behavior.spellcheck')
|
1, 'behavior.spellcheck')
|
||||||
|
if not HAVE_GTKSPELL:
|
||||||
|
obj.set_sensitive(False)
|
||||||
|
obj.set_tooltip_text(_("Spelling checker is not installed"))
|
||||||
self.add_checkbox(table,
|
self.add_checkbox(table,
|
||||||
_('Display Tip of the Day'),
|
_('Display Tip of the Day'),
|
||||||
2, 'behavior.use-tips')
|
2, 'behavior.use-tips')
|
||||||
|
Loading…
Reference in New Issue
Block a user