summaryrefslogtreecommitdiff
path: root/gtk/gtkvbox.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1999-01-14 06:04:55 +0000
committerOwen Taylor <otaylor@src.gnome.org>1999-01-14 06:04:55 +0000
commit467e0fcb24cc2ddb78b4251ff587c3269f578563 (patch)
tree15de3d3cbd74ad8074d363d1a9e84a31b71357cc /gtk/gtkvbox.c
parentc8ae0b92cae360316fe30f40e738bdf5a93c31b9 (diff)
downloadgtk+-467e0fcb24cc2ddb78b4251ff587c3269f578563.tar.gz
gtk/gtkbutton.c gtk/gtkclist.c gtk/gtkhandlebox.c gtk/gtkframe.c
Wed Jan 13 22:34:29 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkbutton.c gtk/gtkclist.c gtk/gtkhandlebox.c gtk/gtkframe.c gtk/gtk[hv]box.c gtk[hv]paned.c gtk/gtklist.c gtkmenu.c gtkmenuitem.c gtkmenubar.c gtknotebook.c gtk/gtkscrolledwindow.c gtk/gtktable.c gtk/gtktree.c gtk/gtktreeeitem.c gtk/gtkviewport.c Fix up comparisons of signed and unsigned ints to avoid assigning negative widths/heigths.
Diffstat (limited to 'gtk/gtkvbox.c')
-rw-r--r--gtk/gtkvbox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkvbox.c b/gtk/gtkvbox.c
index 486b89706f..cd48869cce 100644
--- a/gtk/gtkvbox.c
+++ b/gtk/gtkvbox.c
@@ -200,7 +200,7 @@ gtk_vbox_size_allocate (GtkWidget *widget,
y = allocation->y + GTK_CONTAINER (box)->border_width;
child_allocation.x = allocation->x + GTK_CONTAINER (box)->border_width;
- child_allocation.width = MAX (1, allocation->width - GTK_CONTAINER (box)->border_width * 2);
+ child_allocation.width = MAX (1, (gint)allocation->width - (gint)GTK_CONTAINER (box)->border_width * 2);
children = box->children;
while (children)
@@ -238,7 +238,7 @@ gtk_vbox_size_allocate (GtkWidget *widget,
if (child->fill)
{
- child_allocation.height = MAX (1, child_height - child->padding * 2);
+ child_allocation.height = MAX (1, child_height - (gint)child->padding * 2);
child_allocation.y = y + child->padding;
}
else
@@ -291,7 +291,7 @@ gtk_vbox_size_allocate (GtkWidget *widget,
if (child->fill)
{
- child_allocation.height = MAX (1, child_height - child->padding * 2);
+ child_allocation.height = MAX (1, child_height - (gint)child->padding * 2);
child_allocation.y = y + child->padding - child_height;
}
else