]> Pileus Git - ~andy/gtk/commitdiff
Fixed GtkCellAreaBox to not allocate invisible cells.
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Mon, 10 Jan 2011 09:46:51 +0000 (18:46 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Mon, 10 Jan 2011 09:47:55 +0000 (18:47 +0900)
This was already done for the most part but not taken care
of for single cell groups (which is the most common case).

gtk/gtkcellareabox.c

index e54f018fab2f820592d55fccf26402b14057e879..44da08dacb72473e0be159ecf49670f95a3bd775 100644 (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;