From 7b7ba149faae102d7b4621f8bb4d17f93d38b01b Mon Sep 17 00:00:00 2001 From: hiro Date: Wed, 16 Jul 2008 02:57:42 +0000 Subject: Force 'en' dictionary if user-specified language doesn't match. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2029 ee746299-78ed-0310-b773-934348b2243d --- src/compose.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/compose.c') diff --git a/src/compose.c b/src/compose.c index 746e9712..80ef48bf 100644 --- a/src/compose.c +++ b/src/compose.c @@ -5814,9 +5814,12 @@ static void compose_set_spell_lang_menu(Compose *compose) g_object_set_data(G_OBJECT(item), "spell-lang", dict); gtk_widget_show(item); - if (!lang_set && g_ascii_strcasecmp("en", dict) == 0) + if (!lang_set && g_ascii_strcasecmp("en", dict) == 0) { + g_free(compose->spell_lang); + compose->spell_lang = g_strdup("en"); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM(item), TRUE); + } } gtk_widget_show(menu); -- cgit v1.2.3