constraintlayout: Make sure guides get their constraints

When using GtkBuilder to create constraints and guides,
the layout manager is already rooted when the guides get
created, and we were forgetting to create the guides
constraints in this case. Fix it by adding a call to
gtk_constraint_guide_update().

This was showing up in the new builder-based constraints
demo as the guide not having the expected effect.
This commit is contained in:
Matthias Clasen 2020-10-30 14:59:08 -04:00
parent 4b8134b19b
commit 2dbaca2464

View File

@ -1867,7 +1867,10 @@ gtk_constraint_layout_add_guide (GtkConstraintLayout *layout,
if (layout->guides_observer)
g_list_store_append (layout->guides_observer, guide);
gtk_constraint_guide_update (guide);
gtk_layout_manager_layout_changed (GTK_LAYOUT_MANAGER (layout));
}
/**