Mercurial > pidgin
comparison src/gtkhtml.c @ 643:df1ceace5cac
[gaim-migrate @ 653]
this should take care of hideous backgrounds in toc's user info
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 08 Aug 2000 22:47:47 +0000 |
parents | 8f0ba638d819 |
children | 71ea550c22ac |
comparison
equal
deleted
inserted
replaced
642:a79bbed31f7e | 643:df1ceace5cac |
---|---|
3419 else | 3419 else |
3420 if (!strncasecmp | 3420 if (!strncasecmp |
3421 (tag, "BODY BGCOLOR", strlen("BODY BGCOLOR"))) | 3421 (tag, "BODY BGCOLOR", strlen("BODY BGCOLOR"))) |
3422 { | 3422 { |
3423 | 3423 |
3424 char *d = tag; | |
3424 /* | 3425 /* |
3425 * Ditch trailing \" | 3426 * Ditch trailing \" |
3426 */ | 3427 */ |
3427 current = push_state(current); | 3428 current = push_state(current); |
3428 tag[strlen(tag) - 1] = 0; | 3429 d += strlen("BODY BGCOLOR="); |
3429 if (sscanf(tag + strlen("BODY BGCOLOR=\"#"), "%x", &colorv) | 3430 if (*d == '\"') |
3431 d++; | |
3432 if (*d == '#') | |
3433 d++; | |
3434 if (d[strlen(d) - 1] == '\"') | |
3435 d[strlen(d) - 1] = 0; | |
3436 if (sscanf(d, "%x", &colorv) | |
3430 && !(options & HTML_OPTION_NO_COLOURS)) | 3437 && !(options & HTML_OPTION_NO_COLOURS)) |
3431 { | 3438 { |
3432 current->bgcol = get_color(colorv, map); | 3439 current->bgcol = get_color(colorv, map); |
3433 current->ownbg = 1; | 3440 current->ownbg = 1; |
3434 } | 3441 } |