summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2019-06-27 17:37:09 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2019-06-28 13:11:22 +0100
commitc81e04755dd7f7378a1704959f552f1108760d6b (patch)
treea808dbdb7285949035dfa588dc12c3bc25910bae /gtk
parente4466dd4fe12a2c14abd5f22466cb243261cac74 (diff)
downloadgtk+-c81e04755dd7f7378a1704959f552f1108760d6b.tar.gz
Notify a layout change when adding and removing constraints
Changing the set of constraints should cause a relayout.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkconstraintlayout.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkconstraintlayout.c b/gtk/gtkconstraintlayout.c
index 86cdd2840f..fd8e258dda 100644
--- a/gtk/gtkconstraintlayout.c
+++ b/gtk/gtkconstraintlayout.c
@@ -1091,6 +1091,8 @@ gtk_constraint_layout_add_constraint (GtkConstraintLayout *manager,
layout_add_constraint (manager, constraint);
g_hash_table_add (manager->constraints, constraint);
+
+ gtk_layout_manager_layout_changed (GTK_LAYOUT_MANAGER (manager));
}
/**
@@ -1111,4 +1113,6 @@ gtk_constraint_layout_remove_constraint (GtkConstraintLayout *manager,
gtk_constraint_detach (constraint);
g_hash_table_remove (manager->constraints, constraint);
+
+ gtk_layout_manager_layout_changed (GTK_LAYOUT_MANAGER (manager));
}