diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-12-07 04:16:16 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-12-07 04:16:16 +0000 |
commit | ef3b6dbe71f114c090f34669fa2066116b11ee96 (patch) | |
tree | 28102e7de530e1c48a8fb532c7fbc8c76d62b25b /gtk/gtkhpaned.c | |
parent | 49587ba05071593ded256631797943a70101084a (diff) | |
download | gdk-pixbuf-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/gtkhpaned.c')
-rw-r--r-- | gtk/gtkhpaned.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkhpaned.c b/gtk/gtkhpaned.c index f2a30b182..196ca4127 100644 --- a/gtk/gtkhpaned.c +++ b/gtk/gtkhpaned.c @@ -196,7 +196,7 @@ gtk_hpaned_size_allocate (GtkWidget *widget, child1_allocation.y = child2_allocation.y = widget->allocation.y + border_width; child2_allocation.x = child1_allocation.x + child1_allocation.width + paned->handle_pos.width; - child2_allocation.width = MAX (1, (gint) allocation->width - child2_allocation.x - border_width); + child2_allocation.width = MAX (1, widget->allocation.x + widget->allocation.width - child2_allocation.x - border_width); /* Now allocate the childen, making sure, when resizing not to * overlap the windows |