diff src/gtkconv.c @ 4438:2054d8429925

[gaim-migrate @ 4713] Setting the font face in preferences works again. Thanks CmdrChalupa. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 28 Jan 2003 02:45:34 +0000
parents 31834b4598eb
children a65555132674
line wrap: on
line diff
--- a/src/gtkconv.c	Mon Jan 27 22:27:02 2003 +0000
+++ b/src/gtkconv.c	Tue Jan 28 02:45:34 2003 +0000
@@ -3304,6 +3304,9 @@
 		/* Setup the foreground and background colors */
 		gaim_gtkconv_update_font_colors(conv);
 
+		/* Setup the font face */
+		gaim_gtkconv_update_font_face(conv);
+
 		if (conv_type == GAIM_CONV_CHAT) {
 			gtkconv->u.chat = g_malloc0(sizeof(struct gaim_gtk_chat_pane));
 
@@ -4602,16 +4605,33 @@
 void
 gaim_gtkconv_update_font_colors(struct gaim_conversation *conv)
 {
-	struct gaim_gtk_conversation *gtkconv = GAIM_GTK_CONVERSATION(conv);
+	struct gaim_gtk_conversation *gtkconv;
+	
+	if (!GAIM_IS_GTK_CONVERSATION(conv))
+		return;
+	
+	gtkconv = GAIM_GTK_CONVERSATION(conv);
 	
-		gtkconv->fg_color.red = fgcolor.red;
-		gtkconv->fg_color.blue = fgcolor.blue;
-		gtkconv->fg_color.green = fgcolor.green;
-
-		gtkconv->bg_color.red = bgcolor.red;
-		gtkconv->bg_color.blue = bgcolor.blue;
-		gtkconv->bg_color.green = bgcolor.green;
-
+	gtkconv->fg_color.red = fgcolor.red;
+	gtkconv->fg_color.blue = fgcolor.blue;
+	gtkconv->fg_color.green = fgcolor.green;
+
+	gtkconv->bg_color.red = bgcolor.red;
+	gtkconv->bg_color.blue = bgcolor.blue;
+	gtkconv->bg_color.green = bgcolor.green;
+}
+
+void
+gaim_gtkconv_update_font_face(struct gaim_conversation *conv)
+{
+	struct gaim_gtk_conversation *gtkconv;
+	
+	if (!GAIM_IS_GTK_CONVERSATION(conv))
+		return;
+	
+	gtkconv = GAIM_GTK_CONVERSATION(conv);
+	
+	strncpy(gtkconv->fontface, fontface, 128);
 }
 
 void