From a0ab7fd642b6f14af32a0e94666db327d5081d95 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Wed, 3 Oct 2007 21:19:53 +0000 Subject: [PATCH] 2007-10-03 Benny Malengier * src/Spell.py: add gtkspell bug workaround, see eg issue 1272, 1091, ... svn: r9069 --- ChangeLog | 3 +++ src/Spell.py | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5d630b285..7d58416c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-10-03 Benny Malengier + * src/Spell.py: add gtkspell bug workaround, see eg issue 1272, 1091, ... + 2007-10-03 Don Allingham * various: create gen package, move proxy files to this library diff --git a/src/Spell.py b/src/Spell.py index b820c48e9..ca8d49d43 100644 --- a/src/Spell.py +++ b/src/Spell.py @@ -170,7 +170,9 @@ class Spell: if HAVE_GTKSPELL: for lang_code, lang_name in LANGUAGES.items(): try: - gtkspell.Spell(gtk.TextView()).set_language(lang_code) + #work around gtkspell bug with tv + tv = gtk.TextView() + gtkspell.Spell(tv).set_language(lang_code) _installed_languages[lang_code] = lang_name except RuntimeError: pass