diff options
-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); |