diff options
author | Laurent Deniel <laurent.deniel@free.fr> | 2000-08-23 21:05:11 +0000 |
---|---|---|
committer | Laurent Deniel <laurent.deniel@free.fr> | 2000-08-23 21:05:11 +0000 |
commit | a33d2bfcd5e0d97d1bd6298e7c5700eb9c79209e (patch) | |
tree | d392b972c1f20e3c164310b3686e7b57f66d6fd6 /gtk | |
parent | a77af9393870fe5e935f480cc9527ca13f5bce3f (diff) |
If the default build-in fonts are not found, use the "6x13" fonts
but change also the prefs.gui_font_name so that an unexisting font
will not be saved with the preferences.
svn path=/trunk/; revision=2354
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/main.c b/gtk/main.c index 02ef88e439..2f9c2233dd 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -1,6 +1,6 @@ /* main.c * - * $Id: main.c,v 1.152 2000/08/23 18:21:44 deniel Exp $ + * $Id: main.c,v 1.153 2000/08/23 21:05:11 deniel Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -1230,6 +1230,8 @@ main(int argc, char *argv[]) fprintf(stderr, "ethereal: Error: font 6x13bold not found\n"); exit(1); } + g_free(prefs->gui_font_name); + prefs->gui_font_name = g_strdup("6x13"); } create_main_window(pl_size, tv_size, bv_size, prefs); |