summaryrefslogtreecommitdiff
path: root/gtk/gtkhbox.c
diff options
context:
space:
mode:
authorOwen Taylor <owt1@cornell.edu>1998-04-07 23:59:25 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-04-07 23:59:25 +0000
commit1c77b5f9269a9841b100664dae61a95e1810da38 (patch)
tree5661b1bee144dd558dc1681d34e0a20a13a38ae9 /gtk/gtkhbox.c
parent13de9dc34f6340cfb33632e717728919d5cec96f (diff)
downloadgtk+-1c77b5f9269a9841b100664dae61a95e1810da38.tar.gz
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.
Diffstat (limited to 'gtk/gtkhbox.c')
-rw-r--r--gtk/gtkhbox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkhbox.c b/gtk/gtkhbox.c
index eb46104d65..2d9fc0ec57 100644
--- a/gtk/gtkhbox.c
+++ b/gtk/gtkhbox.c
@@ -198,7 +198,7 @@ gtk_hbox_size_allocate (GtkWidget *widget,
x = allocation->x + GTK_CONTAINER (box)->border_width;
child_allocation.y = allocation->y + GTK_CONTAINER (box)->border_width;
- child_allocation.height = MAX (0, allocation->height - GTK_CONTAINER (box)->border_width * 2);
+ child_allocation.height = MAX (1, allocation->height - GTK_CONTAINER (box)->border_width * 2);
children = box->children;
while (children)
@@ -236,7 +236,7 @@ gtk_hbox_size_allocate (GtkWidget *widget,
if (child->fill)
{
- child_allocation.width = MAX (0, child_width - child->padding * 2);
+ child_allocation.width = MAX (1, child_width - child->padding * 2);
child_allocation.x = x + child->padding;
}
else
@@ -289,7 +289,7 @@ gtk_hbox_size_allocate (GtkWidget *widget,
if (child->fill)
{
- child_allocation.width = MAX (0, child_width - child->padding * 2);
+ child_allocation.width = MAX (1, child_width - child->padding * 2);
child_allocation.x = x + child->padding - child_width;
}
else