[gtk+/wip/baedert/drawing: 82/262] icon: Stop calling gtk_widget_set_allocation



commit f7cf97926af76cd000a214cba6805494c0d1a1b6
Author: Timm Bäder <mail baedert org>
Date:   Thu May 4 09:37:05 2017 +0200

    icon: Stop calling gtk_widget_set_allocation
    
    The allocation passed to size-allocate is the content allocation so this
    call doesn't make sense anymore.

 gtk/gtkicon.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkicon.c b/gtk/gtkicon.c
index 925c519..c22c071 100644
--- a/gtk/gtkicon.c
+++ b/gtk/gtkicon.c
@@ -120,7 +120,6 @@ gtk_icon_size_allocate (GtkWidget     *widget,
   GtkIconPrivate *priv = gtk_icon_get_instance_private (self);
   GtkAllocation clip;
 
-  gtk_widget_set_allocation (widget, allocation);
   gtk_css_gadget_allocate (priv->gadget, allocation,
                            gtk_widget_get_allocated_baseline (widget),
                            &clip);


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