Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
665:0bbcdd94e5b0 | 666:71ea550c22ac |
---|---|
42 GList *aim_users = NULL; | 42 GList *aim_users = NULL; |
43 int general_options; | 43 int general_options; |
44 int display_options; | 44 int display_options; |
45 int sound_options; | 45 int sound_options; |
46 int font_options; | 46 int font_options; |
47 char *fontface; | |
48 char *fontname; | |
49 | 47 |
50 int report_idle, web_browser; | 48 int report_idle, web_browser; |
51 struct save_pos blist_pos; | 49 struct save_pos blist_pos; |
52 char web_command[2048]; | 50 char web_command[2048]; |
53 char aim_host[512]; | 51 char aim_host[512]; |
450 general_options = atoi(p->value[0]); | 448 general_options = atoi(p->value[0]); |
451 } else if (!strcmp(p->option, "display_options")) { | 449 } else if (!strcmp(p->option, "display_options")) { |
452 display_options = atoi(p->value[0]); | 450 display_options = atoi(p->value[0]); |
453 } else if (!strcmp(p->option, "sound_options")) { | 451 } else if (!strcmp(p->option, "sound_options")) { |
454 sound_options = atoi(p->value[0]); | 452 sound_options = atoi(p->value[0]); |
455 } else if (!strcmp(p->option, "font_options")) { | 453 } else if (!strcmp(p->option, "font_options")) { |
456 font_options = atoi(p->value[0]); | 454 font_options = atoi(p->value[0]); |
457 } else if (!strcmp(p->option, "font_face")) { | 455 } else if (!strcmp(p->option, "font_face")) { |
458 if (p->value[0] != NULL) | 456 if (p->value[0] != NULL) |
459 fontface = g_strconcat(p->value[0], '\0'); | 457 g_snprintf(fontface, sizeof(fontface), "%s", p->value[0]); |
460 } else if (!strcmp(p->option, "font_name")) { | 458 } else if (!strcmp(p->option, "foreground")) { |
461 if (p->value[0] != NULL) | 459 fgcolor = atoi(p->value[0]); |
462 fontname = g_strconcat(p->value[0], '\0'); | 460 } else if (!strcmp(p->option, "background")) { |
463 } else if (!strcmp(p->option, "latest_ver")) { | 461 bgcolor = atoi(p->value[0]); |
464 g_snprintf(latest_ver, BUF_LONG, "%s", p->value[0]); | |
465 } else if (!strcmp(p->option, "report_idle")) { | 462 } else if (!strcmp(p->option, "report_idle")) { |
466 report_idle = atoi(p->value[0]); | 463 report_idle = atoi(p->value[0]); |
467 } else if (!strcmp(p->option, "web_browser")) { | 464 } else if (!strcmp(p->option, "web_browser")) { |
468 web_browser = atoi(p->value[0]); | 465 web_browser = atoi(p->value[0]); |
469 } else if (!strcmp(p->option, "web_command")) { | 466 } else if (!strcmp(p->option, "web_command")) { |
500 | 497 |
501 fprintf(f, "options {\n"); | 498 fprintf(f, "options {\n"); |
502 fprintf(f, "\tgeneral_options { %d }\n", general_options); | 499 fprintf(f, "\tgeneral_options { %d }\n", general_options); |
503 fprintf(f, "\tdisplay_options { %d }\n", display_options); | 500 fprintf(f, "\tdisplay_options { %d }\n", display_options); |
504 fprintf(f, "\tsound_options { %d }\n", sound_options); | 501 fprintf(f, "\tsound_options { %d }\n", sound_options); |
505 fprintf(f, "\tfont_options { %d }\n", font_options); | 502 fprintf(f, "\tfont_options { %d }\n", font_options); |
506 if (fontface) | 503 if (fontface) |
507 fprintf(f, "\tfont_face { %s }\n", fontface); | 504 fprintf(f, "\tfont_face { %s }\n", fontface); |
508 if (fontname) | 505 fprintf(f, "\tforeground { %d }\n", fgcolor); |
509 fprintf(f, "\tfont_name { %s }\n", fontname); | 506 fprintf(f, "\tbackground { %d }\n", bgcolor); |
510 fprintf(f, "\treport_idle { %d }\n", report_idle); | 507 fprintf(f, "\treport_idle { %d }\n", report_idle); |
511 fprintf(f, "\tweb_browser { %d }\n", web_browser); | 508 fprintf(f, "\tweb_browser { %d }\n", web_browser); |
512 fprintf(f, "\tweb_command { %s }\n", web_command); | 509 fprintf(f, "\tweb_command { %s }\n", web_command); |
513 fprintf(f, "\tproxy_type { %d }\n", proxy_type); | 510 fprintf(f, "\tproxy_type { %d }\n", proxy_type); |
514 fprintf(f, "\tproxy_host { %s }\n", proxy_host); | 511 fprintf(f, "\tproxy_host { %s }\n", proxy_host); |