# HG changeset patch # User Tim Ringenbach # Date 1114132533 0 # Node ID 06e71aa662af18b47d5b44d09fa9a052cda71a11 # Parent 6132e58aa6185bb2450e8146cd82a2cb3a1cb2a3 [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 diff -r 6132e58aa618 -r 06e71aa662af src/gtkimhtml.c --- 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);