Move missing Gtk Spell warning

svn: r23224
This commit is contained in:
Nick Hall 2013-09-30 12:45:32 +00:00
parent 3b14e98a1a
commit 533a279189
2 changed files with 10 additions and 8 deletions

View File

@ -71,6 +71,7 @@ from .glade import Glade
from gramps.gen.plug.utils import available_updates
from .plug import PluginWindows
from gramps.gen.errors import WindowActiveError
from .spell import HAVE_GTKSPELL
#-------------------------------------------------------------------------
#
@ -299,6 +300,7 @@ class ConfigureDialog(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):
@ -1232,9 +1234,16 @@ class GrampsPreferences(ConfigureDialog):
self.tag_format_entry.set_sensitive(config.get('preferences.tag-on-import'))
current_line += 1
self.add_checkbox(table,
obj = self.add_checkbox(table,
_('Enable spelling checker'),
current_line, 'behavior.spellcheck')
if not HAVE_GTKSPELL:
obj.set_sensitive(False)
obj.set_tooltip_text(_("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"))
current_line += 1
self.add_checkbox(table,

View File

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