Removed, because that's what a NULL comparison function means. And it
Tue Apr 7 19:36:48 1998 Owen Taylor <owt1@cornell.edu> * gutils.c (g_direct_compare): Removed, because that's what a NULL comparison function means. And it wasn't 64 bit safe. Tue Apr 7 19:14:03 1998 Owen Taylor <owt1@cornell.edu> * gdk/gdkpixmap.c: Added maximum field widths to prevent possible '%s' scanf overflows. Replaced scanf("%c") with getc(), Don't interpret /*/ as a full comment. Use g_realloc/g_new. * gtk/gtkwidget.h gtk/gtkprivate.h: Changed all flag tests to check for ((GTK_WIDGET_FLAGS(widget) & FLAG) != 0) instead of (GTK_WIDGET_FLAGS(widget) & FLAG) * gtk/gtkfilesel.c: Use getwd() instead of getcwd() on SunOS, because getcwd() hangs up in a wait4(). (Found by David Monniaux <monniaux@clipper.ens.fr>) - Check device/inode/mtime not just inode/mtime, when caching scanned directories. (From: scottk@ig.utexas.edu (Scott Kempf)) * gdk/gdkpixmap.c: Check for 0 width/height when creating pixmaps. * gtk/*.c: Global substitution of recently introduced "MAX (0," for allocations to "MAX (1,", since creating a backing pixmap with a zero width or height fails. * gdk/gdkwindow.c (gdk_window_new): Don't set all the WM properties for child windows. Don't set the base size, since the value we set will be taken as a minimum size.
This commit is contained in:
@ -1162,16 +1162,16 @@ gtk_notebook_size_allocate (GtkWidget *widget,
|
||||
{
|
||||
child_allocation.x = GTK_CONTAINER (widget)->border_width;
|
||||
child_allocation.y = GTK_CONTAINER (widget)->border_width;
|
||||
child_allocation.width = MAX (0, allocation->width - child_allocation.x * 2);
|
||||
child_allocation.height = MAX (0, allocation->height - child_allocation.y * 2);
|
||||
child_allocation.width = MAX (1, allocation->width - child_allocation.x * 2);
|
||||
child_allocation.height = MAX (1, allocation->height - child_allocation.y * 2);
|
||||
|
||||
if (notebook->show_tabs || notebook->show_border)
|
||||
{
|
||||
child_allocation.x += widget->style->klass->xthickness;
|
||||
child_allocation.y += widget->style->klass->ythickness;
|
||||
child_allocation.width = MAX (0,
|
||||
child_allocation.width = MAX (1,
|
||||
child_allocation.width - widget->style->klass->xthickness * 2);
|
||||
child_allocation.height = MAX (0,
|
||||
child_allocation.height = MAX (1,
|
||||
child_allocation.height - widget->style->klass->ythickness * 2);
|
||||
|
||||
if (notebook->show_tabs && notebook->children)
|
||||
@ -1181,13 +1181,13 @@ gtk_notebook_size_allocate (GtkWidget *widget,
|
||||
case GTK_POS_TOP:
|
||||
child_allocation.y += notebook->cur_page->requisition.height;
|
||||
case GTK_POS_BOTTOM:
|
||||
child_allocation.height = MAX (0,
|
||||
child_allocation.height = MAX (1,
|
||||
child_allocation.height - notebook->cur_page->requisition.height);
|
||||
break;
|
||||
case GTK_POS_LEFT:
|
||||
child_allocation.x += notebook->cur_page->requisition.width;
|
||||
case GTK_POS_RIGHT:
|
||||
child_allocation.width = MAX (0,
|
||||
child_allocation.width = MAX (1,
|
||||
child_allocation.width - notebook->cur_page->requisition.width);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user