aboutsummaryrefslogtreecommitdiff
path: root/libsylph/prefs_common.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-09-30 09:45:20 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-09-30 09:45:20 +0000
commit582acbad25c722a39f6c7bb29c92c3933a964366 (patch)
tree92f08702940163a16c2ad31605056990618f41b7 /libsylph/prefs_common.c
parent068545ca6a1a82d3847872e236bb6340eccd363c (diff)
Win32: set the default font to 'MS Gothic 12' on Japanese environment.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@617 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/prefs_common.c')
-rw-r--r--libsylph/prefs_common.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libsylph/prefs_common.c b/libsylph/prefs_common.c
index 71cc16ff..9b8af6e8 100644
--- a/libsylph/prefs_common.c
+++ b/libsylph/prefs_common.c
@@ -343,6 +343,16 @@ void prefs_common_read_config(void)
path = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, COMMON_RC, NULL);
prefs_read_config(param, "Common", path, NULL);
+
+#ifdef G_OS_WIN32
+ if (!is_file_exist(path)) {
+ if (conv_is_ja_locale()) {
+ g_free(prefs_common.textfont);
+ prefs_common.textfont = g_strdup("MS Gothic 12");
+ }
+ }
+#endif
+
g_free(path);
prefs_common.online_mode = TRUE;