Mercurial > pidgin.yaz
changeset 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 | c52a97f3739e |
children | 160dfd3b0679 |
files | src/gaimrc.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gaimrc.c Mon Jun 02 06:41:14 2003 +0000 +++ b/src/gaimrc.c Mon Jun 02 06:42:56 2003 +0000 @@ -933,7 +933,7 @@ fgcolor.blue = atoi(p->value[2]); fgcolor.green = atoi(p->value[1]); - g_snprintf(buf, sizeof(buf), "#%02x%02x%02x", + g_snprintf(buf, sizeof(buf), "#%03x%03x%03x", atoi(p->value[0]), atoi(p->value[2]), atoi(p->value[1])); gaim_prefs_set_string("/gaim/gtk/conversations/fgcolor", buf); @@ -944,9 +944,10 @@ bgcolor.blue = atoi(p->value[2]); bgcolor.green = atoi(p->value[1]); - g_snprintf(buf, sizeof(buf), "#%02x%02x%02x", + g_snprintf(buf, sizeof(buf), "#%03x%03x%03x", atoi(p->value[0]), atoi(p->value[2]), atoi(p->value[1])); gaim_prefs_set_string("/gaim/gtk/conversations/bgcolor", buf); + printf("\n\n%s\n\n",buf); } else if (!strcmp(p->option, "report_idle")) { switch(atoi(p->value[0])) {