-static void
-gtk_pizza_adjust_allocations_recurse (GtkWidget *widget,
- gpointer cb_data)
-{
- GtkPizzaAdjData *data = cb_data;
-
- widget->allocation.x += data->dx;
- widget->allocation.y += data->dy;
-
- if (GTK_WIDGET_NO_WINDOW (widget) && GTK_IS_CONTAINER (widget))
- {
- gtk_container_forall (GTK_CONTAINER (widget),
- gtk_pizza_adjust_allocations_recurse,
- cb_data);
- }
-}
-
-static void
-gtk_pizza_adjust_allocations (GtkPizza *pizza,
- gint dx,
- gint dy)
-{
- GList *tmp_list;
- GtkPizzaAdjData data;
-
- data.dx = dx;
- data.dy = dy;
-
- tmp_list = pizza->children;
- while (tmp_list)
- {
- GtkPizzaChild *child = tmp_list->data;
- tmp_list = tmp_list->next;
-
- child->widget->allocation.x += dx;
- child->widget->allocation.y += dy;
-
- if (GTK_WIDGET_NO_WINDOW (child->widget) &&
- GTK_IS_CONTAINER (child->widget))
- {
- gtk_container_forall (GTK_CONTAINER (child->widget),
- gtk_pizza_adjust_allocations_recurse,
- &data);
- }
- }
-}
-