comparison 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
comparison
equal deleted inserted replaced
2762:8eb8db9a8449 2763:477a035d81e5
729 font_options = atoi(p->value[0]); 729 font_options = atoi(p->value[0]);
730 } else if (!strcmp(p->option, "sound_options")) { 730 } else if (!strcmp(p->option, "sound_options")) {
731 sound_options = atoi(p->value[0]); 731 sound_options = atoi(p->value[0]);
732 } else if (!strcmp(p->option, "away_options")) { 732 } else if (!strcmp(p->option, "away_options")) {
733 away_options = atoi(p->value[0]); 733 away_options = atoi(p->value[0]);
734 } else if (!strcmp(p->option, "font_xfld")) {
735 g_snprintf(fontxfld, sizeof(fontxfld), "%s", p->value[0]);
734 } else if (!strcmp(p->option, "font_face")) { 736 } else if (!strcmp(p->option, "font_face")) {
735 if (p->value[0] != NULL) 737 g_snprintf(fontface, sizeof(fontface), "%s", p->value[0]);
736 g_snprintf(fontface, sizeof(fontface), "%s", p->value[0]);
737 } else if (!strcmp(p->option, "font_size")) { 738 } else if (!strcmp(p->option, "font_size")) {
738 fontsize = atoi(p->value[0]); 739 fontsize = atoi(p->value[0]);
739 } else if (!strcmp(p->option, "foreground")) { 740 } else if (!strcmp(p->option, "foreground")) {
740 fgcolor.red = atoi(p->value[0]); 741 fgcolor.red = atoi(p->value[0]);
741 fgcolor.green = atoi(p->value[1]); 742 fgcolor.green = atoi(p->value[1]);
821 fprintf(f, "\tchat_options { %u }\n", chat_options); 822 fprintf(f, "\tchat_options { %u }\n", chat_options);
822 fprintf(f, "\tfont_options { %u }\n", font_options); 823 fprintf(f, "\tfont_options { %u }\n", font_options);
823 fprintf(f, "\tsound_options { %u }\n", sound_options); 824 fprintf(f, "\tsound_options { %u }\n", sound_options);
824 fprintf(f, "\taway_options { %u }\n", away_options); 825 fprintf(f, "\taway_options { %u }\n", away_options);
825 826
826 if (fontface) 827 fprintf(f, "\tfont_xfld { %s }\n", fontxfld);
827 fprintf(f, "\tfont_face { %s }\n", fontface); 828 fprintf(f, "\tfont_face { %s }\n", fontface);
828 fprintf(f, "\tfont_size { %d }\n", fontsize); 829 fprintf(f, "\tfont_size { %d }\n", fontsize);
829 fprintf(f, "\tforeground { %d } { %d } { %d }\n", fgcolor.red, fgcolor.green, fgcolor.blue); 830 fprintf(f, "\tforeground { %d } { %d } { %d }\n", fgcolor.red, fgcolor.green, fgcolor.blue);
830 fprintf(f, "\tbackground { %d } { %d } { %d }\n", bgcolor.red, bgcolor.green, bgcolor.blue); 831 fprintf(f, "\tbackground { %d } { %d } { %d }\n", bgcolor.red, bgcolor.green, bgcolor.blue);
831 fprintf(f, "\treport_idle { %d }\n", report_idle); 832 fprintf(f, "\treport_idle { %d }\n", report_idle);
832 fprintf(f, "\tweb_browser { %d }\n", web_browser); 833 fprintf(f, "\tweb_browser { %d }\n", web_browser);