]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkcontainer.c
reworked the redrawing heuristics somewhat, this fixed a bunch of existing
[~andy/gtk] / gtk / gtkcontainer.c
index ce8cc9ba2f9bb8354f2cc09044d7076e5a3d6f62..e1b3e02aa4d3d83b815bd32859e3f8a19ca54070 100644 (file)
@@ -936,11 +936,8 @@ gtk_container_real_check_resize (GtkContainer *container)
       widget->requisition.height > widget->allocation.height)
     {
       if (GTK_IS_RESIZE_CONTAINER (container))
-       {
-         gtk_widget_size_allocate (GTK_WIDGET (container),
-                                   &GTK_WIDGET (container)->allocation);
-         gtk_widget_queue_draw (GTK_WIDGET (container));
-       }
+       gtk_widget_size_allocate (GTK_WIDGET (container),
+                                 &GTK_WIDGET (container)->allocation);
       else
        gtk_widget_queue_resize (widget);
     }
@@ -1009,11 +1006,8 @@ gtk_container_resize_children (GtkContainer *container)
       if (resize_container->parent)
        gtk_container_queue_resize (container);
       else
-       {
-         gtk_widget_size_allocate (GTK_WIDGET (container),
-                                   &GTK_WIDGET (container)->allocation);
-         gtk_widget_queue_draw (GTK_WIDGET (container));
-       }
+       gtk_widget_size_allocate (GTK_WIDGET (container),
+                                 &GTK_WIDGET (container)->allocation);
       return;
     }
 
@@ -1084,8 +1078,9 @@ gtk_container_resize_children (GtkContainer *container)
       widget = node->data;
       
       GTK_PRIVATE_UNSET_FLAG (widget, GTK_RESIZE_NEEDED);
+
       gtk_widget_size_allocate (widget, &widget->allocation);
-      gtk_widget_queue_draw (widget);
+
       gtk_widget_unref (widget);
     }
   g_slist_free (resize_containers);