# HG changeset patch # User Eric Warmenhoven # Date 965973026 0 # Node ID e871081839d05283676e2a7b05993ad2ed1f6bab # Parent c9b66c71028304435754264cf037566a718b64fb [gaim-migrate @ 679] i think i fixed that "don't resize" bug. lesson learned: don't play with gtkhtml. committer: Tailor Script diff -r c9b66c710283 -r e871081839d0 src/gtkhtml.c --- a/src/gtkhtml.c Fri Aug 11 05:15:43 2000 +0000 +++ b/src/gtkhtml.c Fri Aug 11 05:50:26 2000 +0000 @@ -3345,8 +3345,11 @@ if (sscanf(d, "%x", &colorv) && !(options & HTML_OPTION_NO_COLOURS)) { - current->color = get_color(colorv, map); - current->owncolor = 1; + if (colorv != 0xffffff || + !(display_options & OPT_DISP_IGN_WHITE)) { + current->color = get_color(colorv, map); + current->owncolor = 1; + } } else { @@ -3402,30 +3405,32 @@ } } } - else - if (!strncasecmp - (tag, "BODY BGCOLOR", strlen("BODY BGCOLOR"))) + else if (!strncasecmp(tag, "BODY", strlen("BODY"))) { - char *d = tag; - /* - * Ditch trailing \" - */ + char *d; current = push_state(current); - d += strlen("BODY BGCOLOR="); - if (*d == '\"') - d++; - if (*d == '#') - d++; - if (d[strlen(d) - 1] == '\"') - d[strlen(d) - 1] = 0; - if (sscanf(d, "%x", &colorv) - && !(options & HTML_OPTION_NO_COLOURS)) + html_strtok(tag, ' '); + while ((d = html_strtok(NULL, ' '))) { - if (colorv == 0xffffff && - !(display_options & OPT_DISP_IGN_WHITE)) { - current->bgcol = get_color(colorv, map); - current->ownbg = 1; + if (!strncasecmp(d, "BGCOLOR=", strlen("BGCOLOR="))) + { + d += strlen("COLOR="); + if (*d == '\"') + d++; + if (*d == '#') + d++; + if (d[strlen(d) - 1] == '\"') + d[strlen(d) - 1] = 0; + if (sscanf(d, "%x", &colorv) + && !(options & HTML_OPTION_NO_COLOURS)) + { + if (colorv == 0xffffff && + !(display_options & OPT_DISP_IGN_WHITE)) { + current->bgcol = get_color(colorv, map); + current->ownbg = 1; + } + } } } }