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



commit acd7048269786d679cf1cb6e2ee5549255da623d
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 af1c741..0b92b6a 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -2209,7 +2209,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);
@@ -2218,7 +2217,6 @@ gtk_container_real_check_resize (GtkContainer *container)
   else
     {
       gtk_widget_size_allocate (widget, &allocation);
-      gtk_widget_set_allocation (widget, &allocation);
     }
 }
 
@@ -2252,7 +2250,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]