diff options
author | Soeren Sandmann <sandmann@daimi.au.dk> | 2004-06-27 01:13:13 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2004-06-27 01:13:13 +0000 |
commit | 8f9fb58487060898c085323be4456a0f4edcf88a (patch) | |
tree | 773e66c2395cacd88a4cbfaa5c0232d10cd55afe /gtk/gtkframe.c | |
parent | f0ef8663b8d4dd61432000cee5745b81d5adfcee (diff) | |
download | gdk-pixbuf-8f9fb58487060898c085323be4456a0f4edcf88a.tar.gz |
Draw line with the current state, not GTK_STATE_NORMAL
Sat Jun 26 17:41:10 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtk[hv]separator.c (gtk_[hv]separator_expose): Draw line with the
current state, not GTK_STATE_NORMAL
* gtk/gtkframe.c (gtk_frame_paint): Fix a rounding error
Diffstat (limited to 'gtk/gtkframe.c')
-rw-r--r-- | gtk/gtkframe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkframe.c b/gtk/gtkframe.c index 02a59c55f..8cd7340ac 100644 --- a/gtk/gtkframe.c +++ b/gtk/gtkframe.c @@ -557,8 +557,9 @@ gtk_frame_paint (GtkWidget *widget, xalign = 1 - frame->label_xalign; height_extra = MAX (0, child_requisition.height - widget->style->ythickness); - y -= height_extra * (1 - frame->label_yalign); - height += height_extra * (1 - frame->label_yalign); + height_extra *= (1 - frame->label_yalign); + y -= height_extra; + height += height_extra; x2 = widget->style->xthickness + (frame->child_allocation.width - child_requisition.width - 2 * LABEL_PAD - 2 * LABEL_SIDE_PAD) * xalign + LABEL_SIDE_PAD; |