comparison src/gtkhtml.c @ 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 21c63b26c604
children 8f0ba638d819
comparison
equal deleted inserted replaced
634:0418f731f188 635:2ad1a8234ef1
2057 } 2057 }
2058 2058
2059 /*end my stuff*/ 2059 /*end my stuff*/
2060 2060
2061 2061
2062 { 2062 if (hb->back != NULL) {
2063 int wid = gdk_string_width(hb->font, hb->text), 2063 int wid = gdk_string_width(hb->font, hb->text),
2064 hei = gdk_text_height(hb->font, "C", 1); 2064 hei = gdk_text_height(hb->font, "C", 1);
2065 if (hb->back != NULL)
2066 gdk_gc_set_foreground(gc, hb->back); 2065 gdk_gc_set_foreground(gc, hb->back);
2067 else 2066 gdk_draw_rectangle(html->html_area, gc, TRUE /* filled */,
2068 gdk_gc_set_foreground(gc, &widget->style->base[selected_state]); 2067 shift + hb->x,
2069 2068 hb->y - html->yoffset - hei - 5,
2070 gdk_draw_rectangle(html->html_area, gc, TRUE /* filled */, shift + hb->x, 2069 wid, hei + hei);
2071 hb->y - html->yoffset - hei - 2,
2072 wid, hei + hei/2);
2073 } 2070 }
2074 2071
2075 if (hb->fore != NULL) 2072 if (hb->fore != NULL)
2076 gdk_gc_set_foreground(gc, hb->fore); 2073 gdk_gc_set_foreground(gc, hb->fore);
2077 else 2074 else
2642 html->bg_gc = create_bg_gc(html); 2639 html->bg_gc = create_bg_gc(html);
2643 2640
2644 html->gc = gdk_gc_new(html->html_area); 2641 html->gc = gdk_gc_new(html->html_area);
2645 gdk_gc_set_exposures(html->gc, TRUE); 2642 gdk_gc_set_exposures(html->gc, TRUE);
2646 gdk_gc_set_foreground(html->gc, &widget->style->text[GTK_STATE_NORMAL]); 2643 gdk_gc_set_foreground(html->gc, &widget->style->text[GTK_STATE_NORMAL]);
2647 gdk_gc_set_background(html->gc, &widget->style->base[GTK_STATE_NORMAL]);
2648 2644
2649 gdk_window_show(html->html_area); 2645 gdk_window_show(html->html_area);
2650 2646
2651 } 2647 }
2652 2648