[gtk/matthiasc/for-master: 1/2] docs: Mention <packing> in migration guide
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 1/2] docs: Mention <packing> in migration guide
- Date: Fri, 4 Jun 2021 12:07:16 +0000 (UTC)
commit c4cbd6ec1b3cec362f2e04c5ea2a0beb082cc47b
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..ad0f248c18 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]