comparison src/gaimrc.c @ 570:93c65fbaa622

[gaim-migrate @ 580] switched the smiley button to a toggle button so that all the other toggle buttons on the playground would stop making fun of her... also added save and cancel buttons to the pref dialog, with pretty pixmaps to boot! committer: Tailor Script <tailor@pidgin.im>
author Todd Kulesza <fflewddur>
date Tue, 01 Aug 2000 22:32:21 +0000
parents dd82845ed7b6
children 71ea550c22ac
comparison
equal deleted inserted replaced
569:b8f0402090bb 570:93c65fbaa622
525 } 525 }
526 526
527 527
528 void set_defaults() 528 void set_defaults()
529 { 529 {
530 if (aim_users)
531 {
532 g_list_free(aim_users);
533 aim_users = NULL;
534 }
535 if (away_messages)
536 {
537 g_list_free(away_messages);
538 away_messages = NULL;
539 }
530 general_options = 540 general_options =
531 OPT_GEN_SEND_LINKS | 541 OPT_GEN_SEND_LINKS |
532 OPT_GEN_ENTER_SENDS | 542 OPT_GEN_ENTER_SENDS |
533 OPT_GEN_SAVED_WINDOWS | 543 OPT_GEN_SAVED_WINDOWS |
534 OPT_GEN_REMEMBER_PASS | 544 OPT_GEN_REMEMBER_PASS |
566 void load_prefs() 576 void load_prefs()
567 { 577 {
568 FILE *f; 578 FILE *f;
569 char buf[1024]; 579 char buf[1024];
570 int ver = 0; 580 int ver = 0;
571 581
572 if (getenv("HOME")) { 582 if (getenv("HOME")) {
573 g_snprintf(buf, sizeof(buf), "%s/.gaimrc", getenv("HOME")); 583 g_snprintf(buf, sizeof(buf), "%s/.gaimrc", getenv("HOME"));
574 if ((f = fopen(buf,"r"))) { 584 if ((f = fopen(buf,"r"))) {
575 fgets(buf, sizeof(buf), f); 585 fgets(buf, sizeof(buf), f);
576 sscanf(buf, "# .gaimrc v%d", &ver); 586 sscanf(buf, "# .gaimrc v%d", &ver);