widget: Clear pending resizes after size_allocate()

This catches the cases where widgets call gtk_widget_queue_resize()
in their size_allocate() callback.
This commit is contained in:
Benjamin Otte 2015-09-28 05:23:32 +02:00
parent 3e3f17576e
commit 4d631a9144

View File

@ -5991,6 +5991,7 @@ gtk_widget_size_allocate_with_baseline (GtkWidget *widget,
GTK_WIDGET_GET_CLASS (widget)->size_allocate (widget, &real_allocation);
/* Size allocation is god... after consulting god, no further requests or allocations are needed */
gtk_widget_ensure_resize (widget);
priv->alloc_needed = FALSE;
size_changed |= (old_clip.width != priv->clip.width ||