comparison src/gaimrc.c @ 1413:42955549cdd9

[gaim-migrate @ 1423] patch from mishan to save window positions correctly committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 18 Jan 2001 20:31:51 +0000
parents cb84b5c6d9ab
children 9be6790092dc
comparison
equal deleted inserted replaced
1412:47413c49bbee 1413:42955549cdd9
650 } else if (!strcmp(p->option, "blist_pos")) { 650 } else if (!strcmp(p->option, "blist_pos")) {
651 blist_pos.x = atoi(p->value[0]); 651 blist_pos.x = atoi(p->value[0]);
652 blist_pos.y = atoi(p->value[1]); 652 blist_pos.y = atoi(p->value[1]);
653 blist_pos.width = atoi(p->value[2]); 653 blist_pos.width = atoi(p->value[2]);
654 blist_pos.height = atoi(p->value[3]); 654 blist_pos.height = atoi(p->value[3]);
655 blist_pos.xoff = atoi(p->value[4]);
656 blist_pos.yoff = atoi(p->value[5]);
657 } 655 }
658 656
659 } 657 }
660 658
661 } 659 }
673 fprintf(f, "\tforeground { %d } { %d } { %d }\n", fgcolor.red, fgcolor.green, fgcolor.blue); 671 fprintf(f, "\tforeground { %d } { %d } { %d }\n", fgcolor.red, fgcolor.green, fgcolor.blue);
674 fprintf(f, "\tbackground { %d } { %d } { %d }\n", bgcolor.red, bgcolor.green, bgcolor.blue); 672 fprintf(f, "\tbackground { %d } { %d } { %d }\n", bgcolor.red, bgcolor.green, bgcolor.blue);
675 fprintf(f, "\treport_idle { %d }\n", report_idle); 673 fprintf(f, "\treport_idle { %d }\n", report_idle);
676 fprintf(f, "\tweb_browser { %d }\n", web_browser); 674 fprintf(f, "\tweb_browser { %d }\n", web_browser);
677 fprintf(f, "\tweb_command { %s }\n", web_command); 675 fprintf(f, "\tweb_command { %s }\n", web_command);
678 fprintf(f, "\tblist_pos { %d } { %d } { %d } { %d } { %d } { %d }\n", 676 fprintf(f, "\tblist_pos { %d } { %d } { %d } { %d }\n",
679 blist_pos.x, blist_pos.y, blist_pos.width, blist_pos.height, 677 blist_pos.x, blist_pos.y, blist_pos.width, blist_pos.height);
680 blist_pos.xoff, blist_pos.yoff);
681 fprintf(f, "}\n"); 678 fprintf(f, "}\n");
682 } 679 }
683 680
684 681
685 static void gaimrc_read_sounds(FILE *f) 682 static void gaimrc_read_sounds(FILE *f)
783 g_snprintf(web_command, sizeof(web_command), "xterm -e lynx %%s"); 780 g_snprintf(web_command, sizeof(web_command), "xterm -e lynx %%s");
784 blist_pos.width = 0; 781 blist_pos.width = 0;
785 blist_pos.height = 0; 782 blist_pos.height = 0;
786 blist_pos.x = 0; 783 blist_pos.x = 0;
787 blist_pos.y = 0; 784 blist_pos.y = 0;
788 blist_pos.xoff = 0;
789 blist_pos.yoff = 0;
790 } 785 }
791 } 786 }
792 787
793 788
794 void load_prefs() 789 void load_prefs()