Mercurial > pidgin.yaz
diff src/gtkhtml.c @ 860:a8633715fb5b
[gaim-migrate @ 870]
bgcolors work better. hopefully we can get them to smileys eventually
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 08 Sep 2000 05:05:06 +0000 |
parents | 050f244b6829 |
children | d828bdc3854b |
line wrap: on
line diff
--- a/src/gtkhtml.c Fri Sep 08 02:16:10 2000 +0000 +++ b/src/gtkhtml.c Fri Sep 08 05:05:06 2000 +0000 @@ -2049,13 +2049,14 @@ if (hb->text && hb->back != NULL && selected_state != GTK_STATE_SELECTED) { - int wid = gdk_string_width(hb->font, hb->text), - hei = gdk_text_height(hb->font, "C", 1); + int hwidth, hheight; + int hei = gdk_text_height(hb->font, "C", 1); + gdk_window_get_size(html->html_area, &hwidth, &hheight); gdk_gc_set_foreground(gc, hb->back); gdk_draw_rectangle(html->html_area, gc, TRUE /* filled */, shift + hb->x, - hb->y - html->yoffset - hei - 5, - wid, hei + hei); + hb->y - html->yoffset - hei - 6, + hwidth - shift - hb->x + 1, hei + hei + 2); } if (hb->fore != NULL)