X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/525ee32a672eb462769d69d31302f465d7fdda0b..936f635341e9b92b37db93cc7781d564babbe25f:/src/gtk/win_gtk.c diff --git a/src/gtk/win_gtk.c b/src/gtk/win_gtk.c index aa9b115a56..cc12038063 100644 --- a/src/gtk/win_gtk.c +++ b/src/gtk/win_gtk.c @@ -14,7 +14,7 @@ #endif #include "wx/platform.h" -#include "wx/gtk/win_gtk.h" +#include "wx/gtk/private/win_gtk.h" #ifdef __cplusplus extern "C" { @@ -309,8 +309,6 @@ gtk_pizza_put (GtkPizza *pizza, gtk_widget_set_parent (widget, GTK_WIDGET (pizza)); gtk_widget_set_size_request( widget, width, height ); - if (GTK_WIDGET_REALIZED (pizza)) - gtk_pizza_allocate_child (pizza, child_info); } void @@ -736,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); } }