summaryrefslogtreecommitdiff
path: root/gtk/gtkvpaned.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/gtkvpaned.c
parentc8ae0b92cae360316fe30f40e738bdf5a93c31b9 (diff)
downloadgdk-pixbuf-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/gtkvpaned.c')
-rw-r--r--gtk/gtkvpaned.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkvpaned.c b/gtk/gtkvpaned.c
index ecbe7ca34..ff5f25f0a 100644
--- a/gtk/gtkvpaned.c
+++ b/gtk/gtkvpaned.c
@@ -174,7 +174,7 @@ gtk_vpaned_size_allocate (GtkWidget *widget,
paned->groove_rectangle.height);
}
- child1_allocation.width = child2_allocation.width = MAX (1, allocation->width - border_width * 2);
+ child1_allocation.width = child2_allocation.width = MAX (1, (gint)allocation->width - border_width * 2);
child1_allocation.height = paned->child1_size;
child1_allocation.x = child2_allocation.x = border_width;
child1_allocation.y = border_width;
@@ -186,7 +186,7 @@ gtk_vpaned_size_allocate (GtkWidget *widget,
paned->groove_rectangle.width = allocation->width;
child2_allocation.y = paned->groove_rectangle.y + paned->gutter_size / 2 + 1;
- child2_allocation.height = MAX (1, allocation->height
+ child2_allocation.height = MAX (1, (gint)allocation->height
- child2_allocation.y - border_width);
/* Now allocate the childen, making sure, when resizing not to