diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2008-07-16 02:57:42 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2008-07-16 02:57:42 +0000 |
commit | 7b7ba149faae102d7b4621f8bb4d17f93d38b01b (patch) | |
tree | 191d98ca15e4603a0937bd5f18cb5c7a62b7f5fd /src | |
parent | fb9d5f30a5caaa8345d2235f43dabef7570ae551 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/compose.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |