]> git.saurik.com Git - wxWidgets.git/commitdiff
queue resize on child when its position changes
authorPaul Cornett <paulcor@bullseye.com>
Wed, 7 Mar 2007 06:17:23 +0000 (06:17 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Wed, 7 Mar 2007 06:17:23 +0000 (06:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/win_gtk.c

index b77c9a2768aa0d9c6337f2d10522b341167d85d7..dcc0e1defd5366b1321c1aa50364ea3b5f9dc277 100644 (file)
@@ -340,8 +340,12 @@ gtk_pizza_set_size (GtkPizza   *pizza,
 
         if (child->widget == widget)
         {
-            child->x = x;
-            child->y = y;
+            if (child->x != x || child->y != y)
+            {
+                child->x = x;
+                child->y = y;
+                gtk_widget_queue_resize(widget);
+            }
 
             gtk_widget_set_size_request (widget, width, height);