comparison src/gaimrc.c @ 5655:8fa4a0d756a0

[gaim-migrate @ 6069] we should be saving 3 digits, because we use 3 digits internally. but this still doesn't fix the problem committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 02 Jun 2003 06:42:56 +0000
parents 80682ac367fa
children 6b3214ab8632
comparison
equal deleted inserted replaced
5654:c52a97f3739e 5655:8fa4a0d756a0
931 931
932 fgcolor.red = atoi(p->value[0]); 932 fgcolor.red = atoi(p->value[0]);
933 fgcolor.blue = atoi(p->value[2]); 933 fgcolor.blue = atoi(p->value[2]);
934 fgcolor.green = atoi(p->value[1]); 934 fgcolor.green = atoi(p->value[1]);
935 935
936 g_snprintf(buf, sizeof(buf), "#%02x%02x%02x", 936 g_snprintf(buf, sizeof(buf), "#%03x%03x%03x",
937 atoi(p->value[0]), atoi(p->value[2]), atoi(p->value[1])); 937 atoi(p->value[0]), atoi(p->value[2]), atoi(p->value[1]));
938 gaim_prefs_set_string("/gaim/gtk/conversations/fgcolor", buf); 938 gaim_prefs_set_string("/gaim/gtk/conversations/fgcolor", buf);
939 939
940 } else if (!strcmp(p->option, "background")) { 940 } else if (!strcmp(p->option, "background")) {
941 char buf[8]; 941 char buf[8];
942 942
943 bgcolor.red = atoi(p->value[0]); 943 bgcolor.red = atoi(p->value[0]);
944 bgcolor.blue = atoi(p->value[2]); 944 bgcolor.blue = atoi(p->value[2]);
945 bgcolor.green = atoi(p->value[1]); 945 bgcolor.green = atoi(p->value[1]);
946 946
947 g_snprintf(buf, sizeof(buf), "#%02x%02x%02x", 947 g_snprintf(buf, sizeof(buf), "#%03x%03x%03x",
948 atoi(p->value[0]), atoi(p->value[2]), atoi(p->value[1])); 948 atoi(p->value[0]), atoi(p->value[2]), atoi(p->value[1]));
949 gaim_prefs_set_string("/gaim/gtk/conversations/bgcolor", buf); 949 gaim_prefs_set_string("/gaim/gtk/conversations/bgcolor", buf);
950 printf("\n\n%s\n\n",buf);
950 951
951 } else if (!strcmp(p->option, "report_idle")) { 952 } else if (!strcmp(p->option, "report_idle")) {
952 switch(atoi(p->value[0])) { 953 switch(atoi(p->value[0])) {
953 case IDLE_SCREENSAVER: 954 case IDLE_SCREENSAVER:
954 gaim_prefs_set_string("/gaim/gtk/idle/reporting_method", 955 gaim_prefs_set_string("/gaim/gtk/idle/reporting_method",