mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-19 21:40:22 +00:00
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:
parent
4b8134b19b
commit
2dbaca2464
@ -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));
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user