Fixed GtkCellAreaBox to not allocate invisible cells.

This was already done for the most part but not taken care
of for single cell groups (which is the most common case).
This commit is contained in:
Tristan Van Berkom 2011-01-10 18:46:51 +09:00
parent 34a7dbae3b
commit 1fa280938b

View File

@ -866,6 +866,9 @@ get_allocated_cells (GtkCellAreaBox *box,
AllocatedCell *cell;
gint cell_position, cell_size;
if (!gtk_cell_renderer_get_visible (info->renderer))
continue;
/* If were not aligned, place the cell after the last cell */
if (info->align)
position = cell_position = group_allocs[i].position;