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.
This commit is contained in:
@ -200,7 +200,7 @@ gtk_menu_bar_size_allocate (GtkWidget *widget,
|
||||
child_allocation.y = (GTK_CONTAINER (menu_bar)->border_width +
|
||||
widget->style->klass->ythickness +
|
||||
BORDER_SPACING);
|
||||
child_allocation.height = allocation->height - child_allocation.y * 2;
|
||||
child_allocation.height = MAX (0, allocation->height - child_allocation.y * 2);
|
||||
|
||||
children = menu_shell->children;
|
||||
while (children)
|
||||
|
||||
Reference in New Issue
Block a user