Mercurial > pidgin.yaz
diff src/gaimrc.c @ 666:71ea550c22ac
[gaim-migrate @ 676]
la la la. i also modified how fonts work a bit to make the convo window
smaller and the code more understandable.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 11 Aug 2000 03:04:29 +0000 |
parents | 93c65fbaa622 |
children | ddc3fd0dcd51 |
line wrap: on
line diff
--- a/src/gaimrc.c Fri Aug 11 02:24:34 2000 +0000 +++ b/src/gaimrc.c Fri Aug 11 03:04:29 2000 +0000 @@ -44,8 +44,6 @@ int display_options; int sound_options; int font_options; -char *fontface; -char *fontname; int report_idle, web_browser; struct save_pos blist_pos; @@ -452,16 +450,15 @@ display_options = atoi(p->value[0]); } else if (!strcmp(p->option, "sound_options")) { sound_options = atoi(p->value[0]); - } else if (!strcmp(p->option, "font_options")) { - font_options = atoi(p->value[0]); - } else if (!strcmp(p->option, "font_face")) { - if (p->value[0] != NULL) - fontface = g_strconcat(p->value[0], '\0'); - } else if (!strcmp(p->option, "font_name")) { - if (p->value[0] != NULL) - fontname = g_strconcat(p->value[0], '\0'); - } else if (!strcmp(p->option, "latest_ver")) { - g_snprintf(latest_ver, BUF_LONG, "%s", p->value[0]); + } else if (!strcmp(p->option, "font_options")) { + font_options = atoi(p->value[0]); + } else if (!strcmp(p->option, "font_face")) { + if (p->value[0] != NULL) + g_snprintf(fontface, sizeof(fontface), "%s", p->value[0]); + } else if (!strcmp(p->option, "foreground")) { + fgcolor = atoi(p->value[0]); + } else if (!strcmp(p->option, "background")) { + bgcolor = atoi(p->value[0]); } else if (!strcmp(p->option, "report_idle")) { report_idle = atoi(p->value[0]); } else if (!strcmp(p->option, "web_browser")) { @@ -502,11 +499,11 @@ fprintf(f, "\tgeneral_options { %d }\n", general_options); fprintf(f, "\tdisplay_options { %d }\n", display_options); fprintf(f, "\tsound_options { %d }\n", sound_options); - fprintf(f, "\tfont_options { %d }\n", font_options); + fprintf(f, "\tfont_options { %d }\n", font_options); if (fontface) fprintf(f, "\tfont_face { %s }\n", fontface); - if (fontname) - fprintf(f, "\tfont_name { %s }\n", fontname); + fprintf(f, "\tforeground { %d }\n", fgcolor); + fprintf(f, "\tbackground { %d }\n", bgcolor); fprintf(f, "\treport_idle { %d }\n", report_idle); fprintf(f, "\tweb_browser { %d }\n", web_browser); fprintf(f, "\tweb_command { %s }\n", web_command);