diff src/gtkconv.c @ 6141:387221e0623f

[gaim-migrate @ 6615] make the register button behave itself also actually use the font face and size prefs, not that anyone actually uses those ;-) committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 15 Jul 2003 19:52:52 +0000
parents 11bedb793a44
children 3b5c86808a66
line wrap: on
line diff
--- a/src/gtkconv.c	Tue Jul 15 18:39:10 2003 +0000
+++ b/src/gtkconv.c	Tue Jul 15 19:52:52 2003 +0000
@@ -111,9 +111,6 @@
 
 } InviteBuddyInfo;
 
-char fontface[128] = { 0 };
-int fontsize = 3;
-
 static GtkWidget *invite_dialog = NULL;
 
 /* Prototypes. <-- because Paco-Paco hates this comment. */
@@ -411,7 +408,9 @@
 
 		if (gaim_prefs_get_bool("/gaim/gtk/conversations/use_custom_size")) {
 			g_snprintf(buf2, limit,
-					   "<FONT SIZE=\"%d\">%s</FONT>", fontsize, buf);
+					   "<FONT SIZE=\"%d\">%s</FONT>",
+					   gaim_prefs_get_int("/gaim/gtk/conversations/font_size"),
+					   buf);
 			strcpy(buf, buf2);
 		}
 
@@ -5226,13 +5225,15 @@
 gaim_gtkconv_update_font_face(GaimConversation *conv)
 {
 	GaimGtkConversation *gtkconv;
-	
+
 	if (!GAIM_IS_GTK_CONVERSATION(conv))
 		return;
-	
+
 	gtkconv = GAIM_GTK_CONVERSATION(conv);
 
-	strncpy(gtkconv->fontface, fontface, 128);
+	strncpy(gtkconv->fontface,
+			gaim_prefs_get_string("/gaim/gtk/conversations/font_face"),
+			sizeof(gtkconv->fontface));
 }
 
 void