diff options
author | Owen Taylor <otaylor@redhat.com> | 1999-01-14 06:04:55 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1999-01-14 06:04:55 +0000 |
commit | 467e0fcb24cc2ddb78b4251ff587c3269f578563 (patch) | |
tree | 15de3d3cbd74ad8074d363d1a9e84a31b71357cc /gtk/gtktreeitem.c | |
parent | c8ae0b92cae360316fe30f40e738bdf5a93c31b9 (diff) | |
download | gtk+-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/gtktreeitem.c')
-rw-r--r-- | gtk/gtktreeitem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtktreeitem.c b/gtk/gtktreeitem.c index 53bb5e58a6..8e99d59a59 100644 --- a/gtk/gtktreeitem.c +++ b/gtk/gtktreeitem.c @@ -551,11 +551,11 @@ gtk_tree_item_size_allocate (GtkWidget *widget, gtk_widget_size_allocate (item->pixmaps_box, &child_allocation); child_allocation.y = GTK_CONTAINER (widget)->border_width; - child_allocation.height = MAX (1, allocation->height - child_allocation.y * 2); + child_allocation.height = MAX (1, (gint)allocation->height - child_allocation.y * 2); child_allocation.x += item->pixmaps_box->requisition.width+DEFAULT_DELTA; child_allocation.width = - MAX (1, allocation->width - (child_allocation.x + border_width)); + MAX (1, (gint)allocation->width - ((gint)child_allocation.x + border_width)); gtk_widget_size_allocate (bin->child, &child_allocation); } |