Merge branch 'alloc-needed-on-child-fix' into 'main'

widget: Reset alloc_needed_on_child before allocating children

See merge request GNOME/gtk!5564
This commit is contained in:
Matthias Clasen 2023-02-28 10:40:02 +00:00
commit a7a498e803

View File

@ -4032,6 +4032,8 @@ gtk_widget_allocate (GtkWidget *widget,
priv->height = adjusted.height;
priv->baseline = baseline;
priv->alloc_needed_on_child = FALSE;
if (priv->layout_manager != NULL)
{
gtk_layout_manager_allocate (priv->layout_manager, widget,
@ -4059,7 +4061,6 @@ gtk_widget_allocate (GtkWidget *widget,
gtk_widget_ensure_resize (widget);
priv->alloc_needed = FALSE;
priv->alloc_needed_on_child = FALSE;
gtk_widget_update_paintables (widget);