Mercurial > pidgin.yaz
changeset 10857:06e71aa662af
[gaim-migrate @ 12533]
This fixes SmarterChild's dumb body bgcolors.
This workaround needs to be implemented for font color and back too.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Fri, 22 Apr 2005 01:15:33 +0000 |
parents | 6132e58aa618 |
children | a29815b897c0 |
files | src/gtkimhtml.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkimhtml.c Thu Apr 21 02:46:55 2005 +0000 +++ b/src/gtkimhtml.c Fri Apr 22 01:15:33 2005 +0000 @@ -646,7 +646,12 @@ color = tag->name + 11; - gdk_color_parse(color, &gcolor); + if (!gdk_color_parse(color, &gcolor)) { + gchar *tmp = g_strdup_printf("#%s", color); + if (!gdk_color_parse(tmp, &gcolor)) + gdk_color_parse("white", &gcolor); + g_free(tmp); + } gdk_gc_set_rgb_fg_color(gc, &gcolor);