diff src/gaimrc.c @ 2763:477a035d81e5

[gaim-migrate @ 2776] more font stuff! yay! committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 19 Nov 2001 12:03:38 +0000
parents f194dd8250d4
children 0899f8c99a15
line wrap: on
line diff
--- a/src/gaimrc.c	Mon Nov 19 11:19:52 2001 +0000
+++ b/src/gaimrc.c	Mon Nov 19 12:03:38 2001 +0000
@@ -731,9 +731,10 @@
 			sound_options = atoi(p->value[0]);
 		} else if (!strcmp(p->option, "away_options")) {
 			away_options = atoi(p->value[0]);
+		} else if (!strcmp(p->option, "font_xfld")) {
+			g_snprintf(fontxfld, sizeof(fontxfld), "%s", p->value[0]);
 		} else if (!strcmp(p->option, "font_face")) {
-			if (p->value[0] != NULL)
-				g_snprintf(fontface, sizeof(fontface), "%s", p->value[0]);
+			g_snprintf(fontface, sizeof(fontface), "%s", p->value[0]);
 		} else if (!strcmp(p->option, "font_size")) {
 			fontsize = atoi(p->value[0]);
 		} else if (!strcmp(p->option, "foreground")) {
@@ -823,8 +824,8 @@
 	fprintf(f, "\tsound_options { %u }\n", sound_options);
 	fprintf(f, "\taway_options { %u }\n", away_options);
 
-	if (fontface)
-		fprintf(f, "\tfont_face { %s }\n", fontface);
+	fprintf(f, "\tfont_xfld { %s }\n", fontxfld);
+	fprintf(f, "\tfont_face { %s }\n", fontface);
 	fprintf(f, "\tfont_size { %d }\n", fontsize);
 	fprintf(f, "\tforeground { %d } { %d } { %d }\n", fgcolor.red, fgcolor.green, fgcolor.blue);
 	fprintf(f, "\tbackground { %d } { %d } { %d }\n", bgcolor.red, bgcolor.green, bgcolor.blue);