Revision 1637 src/main.c

main.c (revision 1637)
225 225
	prefs_actions_read_config();
226 226
	prefs_display_header_read_config();
227 227

  
228
#ifdef G_OS_WIN32
229
	{
230
		gchar *path;
231
		path = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, COMMON_RC,
232
				   NULL);
233
		if (!is_file_exist(path) && conv_is_ja_locale()) {
234
			const gchar *str;
235

  
236
			debug_print("fixing prefs_common.textfont setting\n");
237
			str = "MS Gothic 12";
238
			if (!gtkut_font_can_load(str)) {
239
				debug_print("font '%s' load failed\n", str);
240
				str = "\xef\xbc\xad\xef\xbc\xb3 \xe3\x82\xb4\xe3\x82\xb7\xe3\x83\x83\xe3\x82\xaf 12";
241
				if (!gtkut_font_can_load(str)) {
242
					debug_print("font '%s' load failed\n", str);
243
					str = NULL;
244
				}
245
			}
246
			if (str) {
247
				debug_print("font '%s' load ok\n", str);
248
				g_free(prefs_common.textfont);
249
				prefs_common.textfont = g_strdup(str);
250
			}
251
		}
252
		g_free(path);
253
	}
254
#endif
255

  
228 256
	gtkut_stock_button_set_set_reverse(!prefs_common.comply_gnome_hig);
229 257

  
230 258
	check_gpg();

Also available in: Unified diff