Mercurial > pidgin.yaz
comparison src/gtkhtml.c @ 629:ce8d8608d05b
[gaim-migrate @ 639]
background colors. <BODY BGCOLOR=""> and <FONT BACK="">.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 07 Aug 2000 04:37:19 +0000 |
parents | da0a1238874d |
children | 21c63b26c604 |
comparison
equal
deleted
inserted
replaced
628:a46a68d46d2b | 629:ce8d8608d05b |
---|---|
2057 } | 2057 } |
2058 | 2058 |
2059 /*end my stuff*/ | 2059 /*end my stuff*/ |
2060 | 2060 |
2061 | 2061 |
2062 { | |
2063 int wid = gdk_string_width(hb->font, hb->text), | |
2064 hei = gdk_text_height(hb->font, "C", 1); | |
2065 if (hb->back != NULL) | |
2066 gdk_gc_set_foreground(gc, hb->back); | |
2067 else | |
2068 gdk_gc_set_foreground(gc, &widget->style->base[selected_state]); | |
2069 | |
2070 gdk_draw_rectangle(html->html_area, gc, TRUE /* filled */, shift + hb->x, | |
2071 hb->y - html->yoffset - hei - 2, | |
2072 wid, hei + hei/2); | |
2073 } | |
2074 | |
2062 if (hb->fore != NULL) | 2075 if (hb->fore != NULL) |
2063 gdk_gc_set_foreground(gc, hb->fore); | 2076 gdk_gc_set_foreground(gc, hb->fore); |
2064 else | 2077 else |
2065 gdk_gc_set_foreground(gc, &widget->style->fg[selected_state]); | 2078 gdk_gc_set_foreground(gc, &widget->style->fg[selected_state]); |
2066 if (hb->back != NULL) | 2079 if (hb->back != NULL) |
2629 html->bg_gc = create_bg_gc(html); | 2642 html->bg_gc = create_bg_gc(html); |
2630 | 2643 |
2631 html->gc = gdk_gc_new(html->html_area); | 2644 html->gc = gdk_gc_new(html->html_area); |
2632 gdk_gc_set_exposures(html->gc, TRUE); | 2645 gdk_gc_set_exposures(html->gc, TRUE); |
2633 gdk_gc_set_foreground(html->gc, &widget->style->text[GTK_STATE_NORMAL]); | 2646 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]); | |
2634 | 2648 |
2635 gdk_window_show(html->html_area); | 2649 gdk_window_show(html->html_area); |
2636 | 2650 |
2637 } | 2651 } |
2638 | 2652 |