Minimum size is necessary so you can see the item. If we can't get that
we need to scroll.
Natural as the maximum is used so that the spacing between items doesn't
increase when resizing the iconview, but empty space is added to the
right/bottom instead.
https://bugzilla.gnome.org/show_bug.cgi?id=677809
if (min_item_size)
{
*min_item_size = size / *min_items;
- *min_item_size = MIN (*min_item_size, natural);
+ *min_item_size = CLAMP (*min_item_size, minimum, natural);
*min_item_size -= spacing;
*min_item_size -= 2 * priv->item_padding;
}
if (max_item_size)
{
*max_item_size = size / *max_items;
- *max_item_size = MIN (*max_item_size, natural);
+ *max_item_size = CLAMP (*max_item_size, minimum, natural);
*max_item_size -= spacing;
*max_item_size -= 2 * priv->item_padding;
}