[gtk+/treeview-refactor] Fixed CellAreaScaffold for new gtk_cell_area_context_allocate() api.



commit 08cc318946e4cf1af9678d7677d24a4504f58a75
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Fri Nov 26 21:35:53 2010 +0900

    Fixed CellAreaScaffold for new gtk_cell_area_context_allocate() api.

 tests/cellareascaffold.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/cellareascaffold.c b/tests/cellareascaffold.c
index 0e0d292..fb8be46 100644
--- a/tests/cellareascaffold.c
+++ b/tests/cellareascaffold.c
@@ -649,12 +649,12 @@ cell_area_scaffold_size_allocate (GtkWidget           *widget,
   /* Cache the per-row sizes and allocate the context */
   if (orientation == GTK_ORIENTATION_HORIZONTAL)
     {
-      gtk_cell_area_context_allocate_width (priv->context, allocation->width - priv->indent);
+      gtk_cell_area_context_allocate (priv->context, allocation->width - priv->indent, -1);
       get_row_sizes (scaffold, priv->row_data, allocation->width - priv->indent);
     }
   else
     {
-      gtk_cell_area_context_allocate_height (priv->context, allocation->height - priv->indent);
+      gtk_cell_area_context_allocate (priv->context, -1, allocation->height - priv->indent);
       get_row_sizes (scaffold, priv->row_data, allocation->height - priv->indent);
     }
 }



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