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 | |
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
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | ChangeLog.ja | 2 | ||||
-rw-r--r-- | src/compose.c | 5 |
3 files changed, 7 insertions, 1 deletions
@@ -1,6 +1,7 @@ 2008-07-16 * src/compose.[ch]: fixed Enchant support. + Force 'en' dictionary if user-specified language doesn't match. 2008-07-10 diff --git a/ChangeLog.ja b/ChangeLog.ja index 09baa7f1..a5d86352 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,6 +1,8 @@ 2008-07-16 * src/compose.[ch]: Enchant サポートを修正。 + ユーザ指定の言語がマッチしない場合 'en' 辞書を強制指定するように + した。 2008-07-10 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); |