diff options
author | Owen Taylor <owt1@cornell.edu> | 1998-04-03 23:17:16 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1998-04-03 23:17:16 +0000 |
commit | 32cd050cfe286e636d4df6d96a4b46936279a5a6 (patch) | |
tree | 4f45bb5081e616ff501d984ea7c3481e0d43ab74 /gtk/gtkhpaned.c | |
parent | 740b70ea0c1bcdb5943b85ed0bba434f73f9a292 (diff) | |
download | gtk+-32cd050cfe286e636d4df6d96a4b46936279a5a6.tar.gz |
More extensive debugging output
Fri Apr 3 17:14:55 1998 Owen Taylor <owt1@cornell.edu>
* gdk/gdk.c: More extensive debugging output
* gtk/gtkalignment.c gtk/gtkbutton.c gtk/gtkcheckbutton.c
gtk/gtkclist.c gtk/gtkeventbox.c gtk/gtkhandlebox.c
gtk/gtk[hv]box.c gtk/gtk[hv]paned.c gtk/gtklist.c
gtk/gtkmenu.c gtk/gtkmenubar.c gtk/gtkmenuitem.c
gtk/gtknotebook.c gtk/gtktable.c gtk/gtktree.c
gtk/gtktreeitem.c gtk/gtkviewport.c
Avoid assigning negative values to unsigned allocation.width and
height
* gtk/gtkwindow.c:
Instead of realizing the widget, then size allocating, (resulting
in XMoveResizeWindows for all children, do the size allocation
first, then realize.
In gtk_real_window_move_resize, combine move and resize
into a single GDK/X call when possible.
* gtk/gtkclist.c gtk/gtkdrawingarea.c:
Remove assumption that the widget will be size allocated _after_
it is realized.
* gtk/gtklist.c (gtk_list_motion_notify): Removed useless
debugging message.
Diffstat (limited to 'gtk/gtkhpaned.c')
-rw-r--r-- | gtk/gtkhpaned.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkhpaned.c b/gtk/gtkhpaned.c index 9ef2ff0952..07bff9e6a1 100644 --- a/gtk/gtkhpaned.c +++ b/gtk/gtkhpaned.c @@ -177,7 +177,7 @@ gtk_hpaned_size_allocate (GtkWidget *widget, paned->groove_rectangle.height); } - child1_allocation.height = child2_allocation.height = allocation->height - border_width * 2; + child1_allocation.height = child2_allocation.height = MAX (0, allocation->height - border_width * 2); child1_allocation.width = paned->child1_size; child1_allocation.x = border_width; child1_allocation.y = child2_allocation.y = border_width; @@ -189,8 +189,8 @@ gtk_hpaned_size_allocate (GtkWidget *widget, paned->groove_rectangle.height = allocation->height; child2_allocation.x = paned->groove_rectangle.x + paned->gutter_size / 2 + 1; - child2_allocation.width = allocation->width - - child2_allocation.x - border_width; + child2_allocation.width = MAX (0, allocation->width + - child2_allocation.x - border_width); /* Now allocate the childen, making sure, when resizing not to * overlap the windows */ |