]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtktreeitem.c
gtk/gtkbutton.c gtk/gtkclist.c gtk/gtkhandlebox.c gtk/gtkframe.c
[~andy/gtk] / gtk / gtktreeitem.c
index 53bb5e58a6384295f03f007ed50280bcf2e0ccac..8e99d59a5946e9fb38ff05ce24b4f5a109d8b36b 100644 (file)
@@ -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);
     }