[gtk+] widget: Set the allocation via gtk_widget_set_allocation()



commit 42a6ae6c6c54ddf2f1c0836ed2e67180c0617c0a
Author: Benjamin Otte <otte redhat com>
Date:   Sat Dec 20 20:39:31 2014 +0100

    widget: Set the allocation via gtk_widget_set_allocation()
    
    There is no good reason to assign the value directly.
    
    Also, this fixes d23f3254b7fcef0fc57739ce5cd548742870b119
    where widgets that chained up instead of calling
    gtk_widget_set_allocation() would not draw becaues of empty clip.

 gtk/gtkwidget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 6794e9e..6962bb5 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -6348,7 +6348,7 @@ gtk_widget_real_size_allocate (GtkWidget     *widget,
 {
   GtkWidgetPrivate *priv = widget->priv;
 
-  priv->allocation = *allocation;
+  gtk_widget_set_allocation (widget, allocation);
 
   if (gtk_widget_get_realized (widget) &&
       gtk_widget_get_has_window (widget))


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