From 05488a59bddd7f73087101df2277563b9df8e620 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 30 Jun 2019 21:02:31 +0000 Subject: [PATCH] constraint layout: notice when guides change We need to queue a resize here. --- gtk/gtkconstraintlayout.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/gtkconstraintlayout.c b/gtk/gtkconstraintlayout.c index ad5df8f4ba..529011e2fb 100644 --- a/gtk/gtkconstraintlayout.c +++ b/gtk/gtkconstraintlayout.c @@ -1278,6 +1278,7 @@ update_min_width (GtkConstraintGuide *guide) GTK_CONSTRAINT_RELATION_GE, gtk_constraint_expression_new (guide->min_width), GTK_CONSTRAINT_WEIGHT_REQUIRED); + gtk_layout_manager_layout_changed (GTK_LAYOUT_MANAGER (guide->layout)); } static void @@ -1304,6 +1305,7 @@ update_min_height (GtkConstraintGuide *guide) GTK_CONSTRAINT_RELATION_GE, gtk_constraint_expression_new (guide->min_height), GTK_CONSTRAINT_WEIGHT_REQUIRED); + gtk_layout_manager_layout_changed (GTK_LAYOUT_MANAGER (guide->layout)); } static void @@ -1330,6 +1332,7 @@ update_nat_width (GtkConstraintGuide *guide) GTK_CONSTRAINT_RELATION_EQ, gtk_constraint_expression_new (guide->nat_width), GTK_CONSTRAINT_WEIGHT_MEDIUM); + gtk_layout_manager_layout_changed (GTK_LAYOUT_MANAGER (guide->layout)); } static void @@ -1356,6 +1359,7 @@ update_nat_height (GtkConstraintGuide *guide) GTK_CONSTRAINT_RELATION_EQ, gtk_constraint_expression_new (guide->nat_height), GTK_CONSTRAINT_WEIGHT_MEDIUM); + gtk_layout_manager_layout_changed (GTK_LAYOUT_MANAGER (guide->layout)); } static void