widget: Set the allocation via gtk_widget_set_allocation()

There is no good reason to assign the value directly.

Also, this fixes d23f3254b7
where widgets that chained up instead of calling
gtk_widget_set_allocation() would not draw becaues of empty clip.
This commit is contained in:
Benjamin Otte 2014-12-20 20:39:31 +01:00
parent 631688cf64
commit 42a6ae6c6c

View File

@ -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))