constraints demo: Set guide strength

This makes us prefer to give the space its natural width.
This commit is contained in:
Matthias Clasen
2019-06-29 14:19:41 +00:00
parent 0221c9443c
commit ab01713234

View File

@@ -88,7 +88,7 @@ build_constraints (SimpleGrid *self,
gtk_constraint_guide_set_min_size (guide, 10, 10);
gtk_constraint_guide_set_nat_size (guide, 100, 10);
gtk_constraint_guide_set_max_size (guide, 200, 20);
gtk_constraints_guide_set_strength (guide, GTK_CONSTRAINT_STRENGTH_STRONG);
gtk_constraint_guide_set_strength (guide, GTK_CONSTRAINT_STRENGTH_STRONG);
gtk_constraint_layout_add_guide (manager, guide);
gtk_constraint_layout_add_constraint (manager,