X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/48510f6156b88a6f9322747b251741f537dd92a0..f7732fa59a48ada168c88ccd004eca3c848d8a05:/src/gtk/win_gtk.c diff --git a/src/gtk/win_gtk.c b/src/gtk/win_gtk.c index df671e5bbb..6eb8b4e1e2 100644 --- a/src/gtk/win_gtk.c +++ b/src/gtk/win_gtk.c @@ -734,14 +734,11 @@ gtk_pizza_scroll (GtkPizza *pizza, gint dx, gint dy) if (pizza->bin_window) gdk_window_scroll( pizza->bin_window, -dx, -dy ); - + for (tmp_list = pizza->children; tmp_list; tmp_list = tmp_list->next) { GtkPizzaChild *child = tmp_list->data; - GtkAllocation alloc = child->widget->allocation; - alloc.x -= dx; - alloc.y -= dy; - gtk_widget_size_allocate( child->widget, &alloc ); + gtk_widget_queue_resize(child->widget); } }