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 | |
parent | 49587ba05071593ded256631797943a70101084a (diff) | |
download | gtk+-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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-0 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-2 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-4 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 5 | ||||
-rw-r--r-- | gtk/gtkhpaned.c | 2 | ||||
-rw-r--r-- | gtk/gtkvpaned.c | 2 |
9 files changed, 37 insertions, 2 deletions
@@ -1,3 +1,8 @@ +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. + Thu Dec 6 16:50:17 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkrange.c: Make button 1 clicks on the trough diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index db97d43c16..94d70b720f 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +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. + Thu Dec 6 16:50:17 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkrange.c: Make button 1 clicks on the trough diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index db97d43c16..94d70b720f 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +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. + Thu Dec 6 16:50:17 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkrange.c: Make button 1 clicks on the trough diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index db97d43c16..94d70b720f 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +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. + Thu Dec 6 16:50:17 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkrange.c: Make button 1 clicks on the trough diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index db97d43c16..94d70b720f 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +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. + Thu Dec 6 16:50:17 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkrange.c: Make button 1 clicks on the trough diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index db97d43c16..94d70b720f 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +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. + Thu Dec 6 16:50:17 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkrange.c: Make button 1 clicks on the trough diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index db97d43c16..94d70b720f 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +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. + Thu Dec 6 16:50:17 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkrange.c: Make button 1 clicks on the trough diff --git a/gtk/gtkhpaned.c b/gtk/gtkhpaned.c index f2a30b1826..196ca41277 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 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 |