[gtk+] Fixed GtkCellAreaBox to not allocate invisible cells.



commit 1fa280938b62a489317934ea7db8114a649dfc87
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Mon Jan 10 18:46:51 2011 +0900

    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).

 gtk/gtkcellareabox.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcellareabox.c b/gtk/gtkcellareabox.c
index e54f018..44da08d 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]