[gtk+] container: Don't randomly call gtk_widget_set_allocation()



commit e422ccefe1b4ce73325afe39c5734bd2545c9b83
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 f469659..1cacdb6 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]