--- 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)