aboutsummaryrefslogtreecommitdiffstats
path: root/epan/prefs.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2004-10-16 09:29:15 +0000
committerUlf Lamping <ulf.lamping@web.de>2004-10-16 09:29:15 +0000
commit2aca5ff0b743ca615917cfd06f3a4734c27bad85 (patch)
tree1b6f6a14ff04fce60daac369b7c0d8494f854b0e /epan/prefs.c
parentb2543fed6c24a62b5029ca3027779a87e90c17a7 (diff)
fix a bug reported by Eric Wedel: Could not save preferences, as "You have not selected a font" dialog pops up, if no previous preferences file exists.
fix: the default font name for GTK1 Win32 was mispelled (at least for WinXP). svn path=/trunk/; revision=12314
Diffstat (limited to 'epan/prefs.c')
-rw-r--r--epan/prefs.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/epan/prefs.c b/epan/prefs.c
index 9965855e76..a44252d47c 100644
--- a/epan/prefs.c
+++ b/epan/prefs.c
@@ -956,7 +956,15 @@ read_prefs(int *gpf_errno_return, int *gpf_read_errno_return,
prefs.filter_toolbar_show_in_statusbar = FALSE;
prefs.gui_toolbar_main_style = TB_STYLE_ICONS;
#ifdef _WIN32
- prefs.gui_font_name1 = g_strdup("-*-lucida console-medium-r-*-*-*-100-*-*-*-*-*-*");
+ /* XXX - not sure, if it must be "Lucida Console" or "lucida console"
+ * for gui_font_name1. Maybe it's dependant on the windows version running?!
+ * verified on XP: "Lucida Console"
+ * unknown for other windows versions.
+ *
+ * Problem: if we have no preferences file, and the default font name is unknown,
+ * we cannot save Preferences as an error dialog pops up "You have not selected a font".
+ */
+ prefs.gui_font_name1 = g_strdup("-*-Lucida Console-medium-r-*-*-*-100-*-*-*-*-*-*");
prefs.gui_font_name2 = g_strdup("Lucida Console 10");
#else
/*