Fix GtkCellAreaBox allocate_cells_manually to handle undersized areas.

This commit is contained in:
Tristan Van Berkom 2010-12-06 16:29:40 +09:00
parent c6572265cb
commit 9366a345b4

View File

@ -697,7 +697,10 @@ allocate_cells_manually (GtkCellAreaBox *box,
/* Naturally distribute the allocation */
avail_size -= (nvisible - 1) * priv->spacing;
if (avail_size > 0)
avail_size = gtk_distribute_natural_allocation (avail_size, nvisible, sizes);
else
avail_size = 0;
/* Calculate/distribute expand for cells */
if (nexpand > 0)