GtkBox: Fix an off-by-one error with center allocation

This error was causing children to not get allocated when
the center widget is the first one in the list of the box's
children.
This commit is contained in:
Matthias Clasen 2014-02-18 22:55:45 -05:00
parent bb4f8d8ce1
commit e679812be0

View File

@ -890,11 +890,11 @@ gtk_box_size_allocate_with_center (GtkWidget *widget,
{ {
min_size[child->pack] += req->minimum_size + 2 * child->padding; min_size[child->pack] += req->minimum_size + 2 * child->padding;
nat_size[child->pack] += req->natural_size + 2 * child->padding; nat_size[child->pack] += req->natural_size + 2 * child->padding;
idx[child->pack] += 1;
} }
req->data = child; req->data = child;
idx[child->pack] += 1;
} }
/* Determine size of center */ /* Determine size of center */