7097: attaching spell checker isn't undoable
Quick-and-dirty fix removing the hang. Needs to be refactored in order not to expose the knowledge of StyleTextEditor's innards to Spell.
This commit is contained in:
parent
ba2766e5b2
commit
78bcb52703
@ -128,7 +128,9 @@ class Spell(object):
|
|||||||
#other installed one will also be available
|
#other installed one will also be available
|
||||||
self.gtkspell_spell.set_language("en")
|
self.gtkspell_spell.set_language("en")
|
||||||
#if that fails no spellchecker will be available
|
#if that fails no spellchecker will be available
|
||||||
|
self.textview.textbuffer.not_undoable_action = True
|
||||||
success = self.gtkspell_spell.attach(self.textview)
|
success = self.gtkspell_spell.attach(self.textview)
|
||||||
|
self.textview.textbuffer.not_undoable_action = False
|
||||||
try:
|
try:
|
||||||
#show decoded language codes in the context menu
|
#show decoded language codes in the context menu
|
||||||
#requires the iso-codes package from http://pkg-isocodes.alioth.debian.org
|
#requires the iso-codes package from http://pkg-isocodes.alioth.debian.org
|
||||||
|
Loading…
Reference in New Issue
Block a user