Mercurial > pidgin
comparison src/gtkimhtml.c @ 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 | 62b5117114d2 |
children | a29815b897c0 |
comparison
equal
deleted
inserted
replaced
10856:6132e58aa618 | 10857:06e71aa662af |
---|---|
644 rect.height = tag_area.y + tag_area.height - rect.y | 644 rect.height = tag_area.y + tag_area.height - rect.y |
645 + gtk_text_view_get_pixels_below_lines(GTK_TEXT_VIEW(widget)); | 645 + gtk_text_view_get_pixels_below_lines(GTK_TEXT_VIEW(widget)); |
646 | 646 |
647 color = tag->name + 11; | 647 color = tag->name + 11; |
648 | 648 |
649 gdk_color_parse(color, &gcolor); | 649 if (!gdk_color_parse(color, &gcolor)) { |
650 gchar *tmp = g_strdup_printf("#%s", color); | |
651 if (!gdk_color_parse(tmp, &gcolor)) | |
652 gdk_color_parse("white", &gcolor); | |
653 g_free(tmp); | |
654 } | |
650 gdk_gc_set_rgb_fg_color(gc, &gcolor); | 655 gdk_gc_set_rgb_fg_color(gc, &gcolor); |
651 | 656 |
652 | 657 |
653 gdk_draw_rectangle(event->window, | 658 gdk_draw_rectangle(event->window, |
654 gc, | 659 gc, |