Mercurial > pidgin
comparison src/gtkhtml.c @ 674:b68c592829a6
[gaim-migrate @ 684]
no more width segfaults. gdk should check this.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Mon, 14 Aug 2000 16:50:33 +0000 |
| parents | e871081839d0 |
| children | 05f6f7dabb7e |
comparison
equal
deleted
inserted
replaced
| 673:ddc3fd0dcd51 | 674:b68c592829a6 |
|---|---|
| 2043 } | 2043 } |
| 2044 | 2044 |
| 2045 /*end my stuff*/ | 2045 /*end my stuff*/ |
| 2046 | 2046 |
| 2047 | 2047 |
| 2048 if (hb->back != NULL && selected_state != GTK_STATE_SELECTED) { | 2048 if (hb->text && hb->back != NULL && selected_state != GTK_STATE_SELECTED) { |
| 2049 int wid = gdk_string_width(hb->font, hb->text), | 2049 int wid = gdk_string_width(hb->font, hb->text), |
| 2050 hei = gdk_text_height(hb->font, "C", 1); | 2050 hei = gdk_text_height(hb->font, "C", 1); |
| 2051 gdk_gc_set_foreground(gc, hb->back); | 2051 gdk_gc_set_foreground(gc, hb->back); |
| 2052 gdk_draw_rectangle(html->html_area, gc, TRUE /* filled */, | 2052 gdk_draw_rectangle(html->html_area, gc, TRUE /* filled */, |
| 2053 shift + hb->x, | 2053 shift + hb->x, |
