summaryrefslogtreecommitdiff
path: root/gtk/gtkcellareabox.c
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2011-01-10 18:46:51 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2011-01-10 18:47:55 +0900
commit1fa280938b62a489317934ea7db8114a649dfc87 (patch)
tree8703f8eec3e1babffbf77402b7e1cf536729c4cf /gtk/gtkcellareabox.c
parent34a7dbae3b5092215afd217b66b9b038240196ab (diff)
downloadgtk+-1fa280938b62a489317934ea7db8114a649dfc87.tar.gz
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).
Diffstat (limited to 'gtk/gtkcellareabox.c')
-rw-r--r--gtk/gtkcellareabox.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkcellareabox.c b/gtk/gtkcellareabox.c
index e54f018fab..44da08dacb 100644
--- a/gtk/gtkcellareabox.c
+++ b/gtk/gtkcellareabox.c
@@ -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;