[gtk+/wip/otte/queue-resize: 2/33] container: Don't randomly call gtk_widget_set_allocation()



commit 64e307c0d6edf4ed8b9cab30e725a9ecb65f87bc
Author: Benjamin Otte <otte redhat com>
Date:   Mon Sep 28 23:31:04 2015 +0200

    container: Don't randomly call gtk_widget_set_allocation()
    
    gtk_widget_size_allocate() does that already.

 gtk/gtkcontainer.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index 992cab0..89dfb7e 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -2207,7 +2207,6 @@ gtk_container_real_check_resize (GtkContainer *container)
       if (GTK_IS_RESIZE_CONTAINER (container))
         {
           gtk_widget_size_allocate (widget, &allocation);
-          gtk_widget_set_allocation (widget, &allocation);
         }
       else
         gtk_widget_queue_resize (widget);
@@ -2216,7 +2215,6 @@ gtk_container_real_check_resize (GtkContainer *container)
   else
     {
       gtk_widget_size_allocate (widget, &allocation);
-      gtk_widget_set_allocation (widget, &allocation);
     }
 }
 
@@ -2250,7 +2248,6 @@ gtk_container_resize_children (GtkContainer *container)
   gtk_widget_get_allocation (widget, &allocation);
 
   gtk_widget_size_allocate (widget, &allocation);
-  gtk_widget_set_allocation (widget, &allocation);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]