forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
49587ba050
commit
ef3b6dbe71
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user