diff options
author | Owen Taylor <otaylor@redhat.com> | 1999-02-10 00:21:09 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1999-02-10 00:21:09 +0000 |
commit | 72d584389835b1f7de3dafd6b0fb0497c63646e3 (patch) | |
tree | c8f89ceb2315250f373568289e9a23affb1668d6 /gtk | |
parent | 782ad2e7d2157dc454a4a73317917fe2bb43ca5c (diff) | |
download | gtk+-72d584389835b1f7de3dafd6b0fb0497c63646e3.tar.gz |
If we can't find helvetica, fall back to "fixed". If we can't find
Tue Feb 9 19:11:43 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkstyle.c (gtk_style_new): If we can't find
helvetica, fall back to "fixed". If we can't
find "fixed", exit cleanly.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkstyle.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c index 097d68c237..8090325d93 100644 --- a/gtk/gtkstyle.c +++ b/gtk/gtkstyle.c @@ -396,8 +396,14 @@ gtk_style_new (void) style = g_new0 (GtkStyle, 1); if (!default_font) - default_font = - gdk_font_load ("-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-*"); + { + default_font = + gdk_font_load ("-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-*"); + if (!default_font) + default_font = gdk_font_load ("fixed"); + if (!default_font) + g_error ("Unable to load default font."); + } style->font = default_font; gdk_font_ref (style->font); |