Mercurial > pidgin.yaz
changeset 635:2ad1a8234ef1
[gaim-migrate @ 645]
background pixmaps work again
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 07 Aug 2000 21:46:24 +0000 |
parents | 0418f731f188 |
children | 072200640327 |
files | src/gtkhtml.c |
diffstat | 1 files changed, 7 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- 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);