summaryrefslogtreecommitdiff
path: root/gtk/gtkvpaned.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-12-07 04:16:16 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-12-07 04:16:16 +0000
commitef3b6dbe71f114c090f34669fa2066116b11ee96 (patch)
tree28102e7de530e1c48a8fb532c7fbc8c76d62b25b /gtk/gtkvpaned.c
parent49587ba05071593ded256631797943a70101084a (diff)
downloadgtk+-ef3b6dbe71f114c090f34669fa2066116b11ee96.tar.gz
Fix errors in computing the size of the second child.
Thu Dec 6 23:09:21 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors in computing the size of the second child.
Diffstat (limited to 'gtk/gtkvpaned.c')
-rw-r--r--gtk/gtkvpaned.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkvpaned.c b/gtk/gtkvpaned.c
index 3951f76b3f..5cfd4b6981 100644
--- a/gtk/gtkvpaned.c
+++ b/gtk/gtkvpaned.c
@@ -196,7 +196,7 @@ gtk_vpaned_size_allocate (GtkWidget *widget,
child1_allocation.y = widget->allocation.y + border_width;
child2_allocation.y = child1_allocation.y + child1_allocation.height + paned->handle_pos.height;
- child2_allocation.height = MAX (1, (gint) allocation->height - child2_allocation.y - border_width);
+ child2_allocation.height = MAX (1, widget->allocation.y + widget->allocation.height - child2_allocation.y - border_width);
/* Now allocate the childen, making sure, when resizing not to
* overlap the windows