[gtk/constraint-editor: 4/5] constraint layout: notice when guides change



commit 05488a59bddd7f73087101df2277563b9df8e620
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jun 30 21:02:31 2019 +0000

    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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]