summaryrefslogtreecommitdiff
path: root/gtk/gtkcellareaboxcontext.c
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-12-02 13:19:37 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-12-02 13:19:37 +0900
commita9fd00a4358f0ff73280bfeb51164872aea50e9b (patch)
tree0799d434ae85eacb733311bf1e1fc39a29f7a358 /gtk/gtkcellareaboxcontext.c
parent30561228ed3dfc88866852ceecf81063a640e0d5 (diff)
downloadgtk+-a9fd00a4358f0ff73280bfeb51164872aea50e9b.tar.gz
Fixed GtkCellAreaBoxContext for some typos introduced while removing GtkCellAreaContext->sum_preferred_width()/height() apis.
Diffstat (limited to 'gtk/gtkcellareaboxcontext.c')
-rw-r--r--gtk/gtkcellareaboxcontext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcellareaboxcontext.c b/gtk/gtkcellareaboxcontext.c
index 463be8f2d5..6ed66d3998 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