summaryrefslogtreecommitdiff
path: root/gtk/gtkstyle.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkstyle.c')
-rw-r--r--gtk/gtkstyle.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index 84cc604310..d2fb0f7150 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -404,20 +404,18 @@ gtk_style_new (void)
style = g_new0 (GtkStyle, 1);
style->font_desc = pango_font_description_from_string ("Sans 10");
-
+
if (!default_font)
{
default_font = gdk_font_from_description (style->font_desc);
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);
-
+
style->ref_count = 1;
style->attach_count = 0;
style->colormap = NULL;