[gtk+/treeview-refactor] Added GtkCellArea classes to gtk.h and fixed a remainig rendering bug.



commit e5e507e1d4529395e56e58956c4ffeb03ec22b9e
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Tue Nov 9 01:25:45 2010 +0900

    Added GtkCellArea classes to gtk.h and fixed a remainig rendering bug.

 gtk/gtk.h            |    3 +++
 gtk/gtkcellareabox.c |   10 ----------
 2 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/gtk/gtk.h b/gtk/gtk.h
index 6e99849..115c6c3 100644
--- a/gtk/gtk.h
+++ b/gtk/gtk.h
@@ -52,6 +52,9 @@
 #include <gtk/gtkbuilder.h>
 #include <gtk/gtkbutton.h>
 #include <gtk/gtkcalendar.h>
+#include <gtk/gtkcellarea.h>
+#include <gtk/gtkcellareabox.h>
+#include <gtk/gtkcellareaiter.h>
 #include <gtk/gtkcelleditable.h>
 #include <gtk/gtkcelllayout.h>
 #include <gtk/gtkcellrenderer.h>
diff --git a/gtk/gtkcellareabox.c b/gtk/gtkcellareabox.c
index a935c7b..21f84b1 100644
--- a/gtk/gtkcellareabox.c
+++ b/gtk/gtkcellareabox.c
@@ -586,8 +586,6 @@ get_allocated_cells (GtkCellAreaBox     *box,
       return NULL;
     }
 
-  g_print ("Allocating cells for rendering, group allocs %d\n", n_allocs);
-
   for (i = 0; i < n_allocs; i++)
     {
       /* We dont always allocate all groups, sometimes the requested group has only invisible
@@ -679,8 +677,6 @@ get_allocated_cells (GtkCellAreaBox     *box,
 	      
 	      position += sizes[j].minimum_size;
 	      position += priv->spacing;
-
-	      j++;
 	    }
 
 	  g_free (sizes);
@@ -1059,9 +1055,6 @@ gtk_cell_area_box_render (GtkCellArea          *area,
    * of alignments and pack order etc. */
   allocated_cells = get_allocated_cells (box, box_iter, widget);
 
-  g_print ("Rendering an area with allocated cells %d\n",
-	   g_slist_length (allocated_cells));
-
   for (l = allocated_cells; l; l = l->next)
     {
       AllocatedCell *cell = l->data;
@@ -1083,9 +1076,6 @@ gtk_cell_area_box_render (GtkCellArea          *area,
 
       /* XXX We have to do some per-cell considerations for the 'flags'
        * for focus handling */
-      g_print ("Rendering a cell at x: %d y: %d width %d height %d\n",
-	       inner_area.x, inner_area.y, inner_area.width, inner_area.height);
-      
       gtk_cell_renderer_render (cell->renderer, cr, widget,
 				&background_area, &inner_area,
 				flags);



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