# HG changeset patch # User Eric Warmenhoven # Date 965684784 0 # Node ID 2ad1a8234ef11cbcd7c8c14b04724b38d8eab174 # Parent 0418f731f1884f0615fa0f1b895f404377c980e9 [gaim-migrate @ 645] background pixmaps work again committer: Tailor Script diff -r 0418f731f188 -r 2ad1a8234ef1 src/gtkhtml.c --- a/src/gtkhtml.c Mon Aug 07 19:53:45 2000 +0000 +++ b/src/gtkhtml.c Mon Aug 07 21:46:24 2000 +0000 @@ -2059,17 +2059,14 @@ /*end my stuff*/ - { - int wid = gdk_string_width(hb->font, hb->text), - hei = gdk_text_height(hb->font, "C", 1); - if (hb->back != NULL) + if (hb->back != NULL) { + int wid = gdk_string_width(hb->font, hb->text), + hei = gdk_text_height(hb->font, "C", 1); gdk_gc_set_foreground(gc, hb->back); - else - gdk_gc_set_foreground(gc, &widget->style->base[selected_state]); - - gdk_draw_rectangle(html->html_area, gc, TRUE /* filled */, shift + hb->x, - hb->y - html->yoffset - hei - 2, - wid, hei + hei/2); + gdk_draw_rectangle(html->html_area, gc, TRUE /* filled */, + shift + hb->x, + hb->y - html->yoffset - hei - 5, + wid, hei + hei); } if (hb->fore != NULL) @@ -2644,7 +2641,6 @@ html->gc = gdk_gc_new(html->html_area); gdk_gc_set_exposures(html->gc, TRUE); gdk_gc_set_foreground(html->gc, &widget->style->text[GTK_STATE_NORMAL]); - gdk_gc_set_background(html->gc, &widget->style->base[GTK_STATE_NORMAL]); gdk_window_show(html->html_area);