[gtk+/treeview-refactor] Fixed GtkCellAreaBoxContext for some typos introduced while removing GtkCellAreaContext->sum_preferr



commit a9fd00a4358f0ff73280bfeb51164872aea50e9b
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Thu Dec 2 13:19:37 2010 +0900

    Fixed GtkCellAreaBoxContext for some typos introduced while removing GtkCellAreaContext->sum_preferred_width()/height() apis.

 gtk/gtkcellareaboxcontext.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcellareaboxcontext.c b/gtk/gtkcellareaboxcontext.c
index 463be8f..6ed66d3 100644
--- a/gtk/gtkcellareaboxcontext.c
+++ b/gtk/gtkcellareaboxcontext.c
@@ -418,9 +418,9 @@ gtk_cell_area_box_context_sum (GtkCellAreaBoxContext *context,
 
   for (i = 0; i < array->len; i++)
     {
-      CachedSize *size = &g_array_index (priv->base_widths, CachedSize, i);
+      CachedSize *size = &g_array_index (array, CachedSize, i);
 
-      if (box_orientation == GTK_ORIENTATION_HORIZONTAL)
+      if (box_orientation == orientation)
 	{
 	  /* Dont add spacing for 0 size groups, they can be 0 size because
 	   * they contain only invisible cells for this round of requests 



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