changeset 2365:4ab2903f28a1

[gaim-migrate @ 2378] hi committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 26 Sep 2001 22:23:59 +0000
parents 94314b9dbda4
children 82e0f87c7698
files src/gtkimhtml.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkimhtml.c	Wed Sep 26 20:31:06 2001 +0000
+++ b/src/gtkimhtml.c	Wed Sep 26 22:23:59 2001 +0000
@@ -1914,9 +1914,7 @@
 		{ "COMPOUND_TEXT", 0, TARGET_COMPOUND_TEXT }
 	};
 
-	imhtml->default_font = gtk_imhtml_font_load (imhtml, NULL, FALSE, FALSE, 0);
-	if (imhtml->default_font == NULL)
-		g_warning ("GtkIMHtml: Could not load default font!");
+	imhtml->default_font = gdk_font_ref (GTK_WIDGET (imhtml)->style->font);
 	imhtml->default_fg_color = gdk_color_copy (&GTK_WIDGET (imhtml)->style->fg [GTK_STATE_NORMAL]);
 	imhtml->default_bg_color = gdk_color_copy (&GTK_WIDGET (imhtml)->style->base [GTK_STATE_NORMAL]);
 	imhtml->hand_cursor = gdk_cursor_new (GDK_HAND2);