src/gtkhtml.c

changeset 868
542626acc8d4
parent 860
18e6b1ddd091
child 869
1186b8775744
equal deleted inserted replaced
867:10a333cc1841 868:542626acc8d4
2052 int hwidth, hheight; 2052 int hwidth, hheight;
2053 int hei = gdk_text_height(hb->font, "C", 1); 2053 int hei = gdk_text_height(hb->font, "C", 1);
2054 gdk_window_get_size(html->html_area, &hwidth, &hheight); 2054 gdk_window_get_size(html->html_area, &hwidth, &hheight);
2055 gdk_gc_set_foreground(gc, hb->back); 2055 gdk_gc_set_foreground(gc, hb->back);
2056 gdk_draw_rectangle(html->html_area, gc, TRUE /* filled */, 2056 gdk_draw_rectangle(html->html_area, gc, TRUE /* filled */,
2057 shift + hb->x, 2057 hb->x, hb->y - html->yoffset - hei - 6,
2058 hb->y - html->yoffset - hei - 6,
2059 hwidth - shift - hb->x + 1, hei + hei + 2); 2058 hwidth - shift - hb->x + 1, hei + hei + 2);
2060 } 2059 }
2061 2060
2062 if (hb->fore != NULL) 2061 if (hb->fore != NULL)
2063 gdk_gc_set_foreground(gc, hb->fore); 2062 gdk_gc_set_foreground(gc, hb->fore);

mercurial