diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2019-06-27 17:37:09 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2019-06-28 13:11:22 +0100 |
commit | c81e04755dd7f7378a1704959f552f1108760d6b (patch) | |
tree | a808dbdb7285949035dfa588dc12c3bc25910bae /gtk | |
parent | e4466dd4fe12a2c14abd5f22466cb243261cac74 (diff) | |
download | gtk+-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.c | 4 |
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)); } |