From b091a2ec60a2a158342874307b2b81763ebc3576 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Thu, 25 Oct 2007 16:12:45 +0000 Subject: [PATCH] fix for scrolling wxSpinCtrl, broken by fix for scrolling wxStaticBox (rev 48550) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/win_gtk.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/gtk/win_gtk.c b/src/gtk/win_gtk.c index 89ef27bf78..f3099fdbbd 100644 --- a/src/gtk/win_gtk.c +++ b/src/gtk/win_gtk.c @@ -692,14 +692,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); } }