diff src/gtkutils.c @ 7988:d9e831876c28

[gaim-migrate @ 8665] Here's my best attempt to rip WYSIWYG editing out of gaim, kicking and screaming all the way. We'll be releasing 0.75 in the very near future, once the translators are alerted, and any bugs from this dissection show themselves. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 04 Jan 2004 06:59:09 +0000
parents 1b8261f374ea
children fa6395637e2c
line wrap: on
line diff
--- a/src/gtkutils.c	Sun Jan 04 05:14:39 2004 +0000
+++ b/src/gtkutils.c	Sun Jan 04 06:59:09 2004 +0000
@@ -240,6 +240,8 @@
 gaim_gtk_set_font_face(GaimGtkConversation *gtkconv,
 					   const char *font)
 {
+	char *pre_fontface;
+
 	if (gtkconv == NULL || font == NULL)
 		return;
 
@@ -249,10 +251,12 @@
 
 	gtkconv->has_font = TRUE;
 
-	gtk_imhtml_toggle_fontface(GTK_IMHTML(gtkconv->entry), gtkconv->fontface);
+	pre_fontface = g_strconcat("<FONT FACE=\"", gtkconv->fontface, "\">", NULL);
+	gaim_gtk_surround(gtkconv, pre_fontface, "</FONT>");
 
 	gtk_widget_grab_focus(gtkconv->entry);
 
+	g_free(pre_fontface);
 }
 
 static int