[gtk/matthiasc/for-master: 1/5] docs: Mention <packing> in migration guide




commit 312289fb1134c0bca3b439491740ec29a93de29f
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jun 4 07:41:25 2021 -0400

    docs: Mention <packing> in migration guide
    
    Add another hint for what to do with child properties.
    
    Fixes: #3950

 docs/reference/gtk/migrating-3to4.md | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/docs/reference/gtk/migrating-3to4.md b/docs/reference/gtk/migrating-3to4.md
index a97f9ea8bb..3e9d9ed0d1 100644
--- a/docs/reference/gtk/migrating-3to4.md
+++ b/docs/reference/gtk/migrating-3to4.md
@@ -804,6 +804,11 @@ by a layout manager (if they are layout-related), or handled in some
 other way. One possibility is to use child meta objects, as seen with
 [class@Gtk.AssistantPage], [class@Gtk.StackPage] and the like.
 
+If you used to define child properties with <packing> in ui files, you have
+to switch to using <layout> for the corresponding layout properties.
+`gtk4-builder-tool` can help with this conversion, with the `--3to4` option
+of the `simplify` command.
+
 The replacements for gtk_container_add() are:
 
 | Widget | Replacement |


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