comparison src/gaimrc.c @ 180:0ff9f19b9b23

[gaim-migrate @ 190] Option to automatically check for new versions committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Wed, 26 Apr 2000 07:39:17 +0000
parents d56878f647fb
children 83dd297aa363
comparison
equal deleted inserted replaced
179:8d8faeab01f6 180:0ff9f19b9b23
49 char web_command[2048]; 49 char web_command[2048];
50 char aim_host[512]; 50 char aim_host[512];
51 int aim_port; 51 int aim_port;
52 char login_host[512]; 52 char login_host[512];
53 int login_port; 53 int login_port;
54 54 char latest_ver[25];
55 55
56 struct parse { 56 struct parse {
57 char option[256]; 57 char option[256];
58 char value[6][256]; 58 char value[6][256];
59 }; 59 };
444 display_options = atoi(p->value[0]); 444 display_options = atoi(p->value[0]);
445 } else if (!strcmp(p->option, "sound_options")) { 445 } else if (!strcmp(p->option, "sound_options")) {
446 sound_options = atoi(p->value[0]); 446 sound_options = atoi(p->value[0]);
447 } else if (!strcmp(p->option, "font_options")) { 447 } else if (!strcmp(p->option, "font_options")) {
448 font_options = atoi(p->value[0]); 448 font_options = atoi(p->value[0]);
449 } else if (!strcmp(p->option, "latest_ver")) {
450 g_snprintf(latest_ver, BUF_LONG, "%s", p->value[0]);
449 } else if (!strcmp(p->option, "report_idle")) { 451 } else if (!strcmp(p->option, "report_idle")) {
450 report_idle = atoi(p->value[0]); 452 report_idle = atoi(p->value[0]);
451 } else if (!strcmp(p->option, "web_browser")) { 453 } else if (!strcmp(p->option, "web_browser")) {
452 web_browser = atoi(p->value[0]); 454 web_browser = atoi(p->value[0]);
453 } else if (!strcmp(p->option, "web_command")) { 455 } else if (!strcmp(p->option, "web_command")) {
498 fprintf(f, "\tlogin_host { %s }\n", login_host); 500 fprintf(f, "\tlogin_host { %s }\n", login_host);
499 fprintf(f, "\tlogin_port { %d }\n", login_port); 501 fprintf(f, "\tlogin_port { %d }\n", login_port);
500 fprintf(f, "\tblist_pos { %d } { %d } { %d } { %d } { %d } { %d }\n", 502 fprintf(f, "\tblist_pos { %d } { %d } { %d } { %d } { %d } { %d }\n",
501 blist_pos.x, blist_pos.y, blist_pos.width, blist_pos.height, 503 blist_pos.x, blist_pos.y, blist_pos.width, blist_pos.height,
502 blist_pos.xoff, blist_pos.yoff); 504 blist_pos.xoff, blist_pos.yoff);
505 fprintf(f, "\tlatest_ver { %s }\n", latest_ver);
503 fprintf(f, "}\n"); 506 fprintf(f, "}\n");
504 } 507 }
505 508
506 509
507 void set_defaults() 510 void set_defaults()
509 general_options = 512 general_options =
510 OPT_GEN_SEND_LINKS | 513 OPT_GEN_SEND_LINKS |
511 OPT_GEN_ENTER_SENDS | 514 OPT_GEN_ENTER_SENDS |
512 OPT_GEN_SAVED_WINDOWS | 515 OPT_GEN_SAVED_WINDOWS |
513 OPT_GEN_REMEMBER_PASS | 516 OPT_GEN_REMEMBER_PASS |
514 OPT_GEN_REGISTERED; 517 OPT_GEN_REGISTERED |
518 OPT_GEN_CHECK_VERSIONS;
515 display_options = 519 display_options =
516 OPT_DISP_SHOW_IDLETIME | 520 OPT_DISP_SHOW_IDLETIME |
517 OPT_DISP_SHOW_TIME | 521 OPT_DISP_SHOW_TIME |
518 OPT_DISP_SHOW_PIXMAPS | 522 OPT_DISP_SHOW_PIXMAPS |
519 OPT_DISP_SHOW_BUTTON_XPM; 523 OPT_DISP_SHOW_BUTTON_XPM;
534 blist_pos.height = 0; 538 blist_pos.height = 0;
535 blist_pos.x = 0; 539 blist_pos.x = 0;
536 blist_pos.y = 0; 540 blist_pos.y = 0;
537 blist_pos.xoff = 0; 541 blist_pos.xoff = 0;
538 blist_pos.yoff = 0; 542 blist_pos.yoff = 0;
543 g_snprintf(latest_ver, BUF_LONG, "%s", VERSION);
539 } 544 }
540 545
541 546
542 void load_prefs() 547 void load_prefs()
543 { 548 {