widget: Don't set the allocation in size-allocate

If widgets chain up in their size-allocate implementation, they pass the
content allocation and not the widget allocation which will cause the
wrong allocation to be set.
This commit is contained in:
Timm Bäder 2017-05-05 12:46:19 +02:00 committed by Matthias Clasen
parent bf118eca80
commit c87be0a27a

View File

@ -5860,8 +5860,6 @@ gtk_widget_real_size_allocate (GtkWidget *widget,
{
GtkWidgetPrivate *priv = widget->priv;
gtk_widget_set_allocation (widget, allocation);
if (_gtk_widget_get_realized (widget) &&
_gtk_widget_get_has_window (widget))
{