[libadwaita/wip/exalm/value-objects: 5/9] doc: Mention `AdwValueObject` removal in the migration guide
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/value-objects: 5/9] doc: Mention `AdwValueObject` removal in the migration guide
- Date: Tue, 31 Aug 2021 11:50:27 +0000 (UTC)
commit a85059b67e0f0683e73094ee4f698c1800601130
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Jun 1 14:15:40 2021 +0500
doc: Mention `AdwValueObject` removal in the migration guide
doc/migrating-libhandy-1-4-to-libadwaita.md | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/doc/migrating-libhandy-1-4-to-libadwaita.md b/doc/migrating-libhandy-1-4-to-libadwaita.md
index fce68a3f..5085defc 100644
--- a/doc/migrating-libhandy-1-4-to-libadwaita.md
+++ b/doc/migrating-libhandy-1-4-to-libadwaita.md
@@ -77,7 +77,12 @@ used for managing children instead of `GtkContainer` API. In Libadwaita
[property Adw Flap:separator] are the only way to manage [class Adw Flap]
children.
-Adding children in a UI file still works.
+### Stop Using `HdyValueObject` with non-string values
+
+`HdyValueObject` has been removed. While it's not practical to replace the cases
+where it's storing strings in GTK3, as the preferred replacement only exists in
+4, it can also be used with any other `GValue`. That use has no replacement and
+you can instead create your own objects to store those values.
## Changes that Need to Be Done at the Time of the Switch
@@ -171,6 +176,11 @@ now.
[class@Adw.EnumValueObject] can no longer be manually created and is only
intended to be used with [class@Adw.EnumListModel].
+### Stop Using `HdyValueObject`
+
+`HdyValueObject` has been removed. The typical use for storing strings in
+combination with `GListStore` can be replaced by using [class@Gtk.StringList].
+
### Adapt to [class@Adw.HeaderBar] API Changes
[class@Adw.HeaderBar] API mostly mirrors [class@Gtk.HeaderBar], refer to the
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]