Fixed a bug in GtkCellAreaBoxIter when allocating vertically.

This commit is contained in:
Tristan Van Berkom 2010-11-09 13:22:44 +09:00
parent 85d6aa1627
commit 368cded84d

View File

@ -491,9 +491,7 @@ allocate_for_orientation (GtkCellAreaBoxIter *iter,
gint avail_size = size;
orientation_sizes =
gtk_cell_area_box_iter_get_requests (iter,
GTK_ORIENTATION_HORIZONTAL,
&n_groups);
gtk_cell_area_box_iter_get_requests (iter, orientation, &n_groups);
/* Count groups that expand */
for (i = 0; i < n_groups; i++)