- GtkPizza *pizza;
- GtkPizzaChild *child;
- GdkEventExpose child_event;
- GList *children;
-
- g_return_val_if_fail (widget != NULL, FALSE);
- g_return_val_if_fail (GTK_IS_PIZZA (widget), FALSE);
- g_return_val_if_fail (event != NULL, FALSE);
-
- pizza = GTK_PIZZA (widget);
-
-/*
- if (event->window == widget->window)
- {
- gtk_pizza_draw_border( pizza );
- return FALSE;
- }
-*/
-
- if (event->window != pizza->bin_window)
- return FALSE;
-
- children = pizza->children;
- while (children)
- {
- child = children->data;
- children = children->next;
-
- child_event = *event;
-
- if (GTK_WIDGET_NO_WINDOW (child->widget) &&
- GTK_WIDGET_DRAWABLE (child->widget) &&
- gtk_widget_intersect (child->widget, &event->area, &child_event.area))
- {
- gtk_widget_event (child->widget, (GdkEvent*) &child_event);
- }
- }
-