[libadwaita/wip/exalm/value-objects: 199/203] 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: 199/203] doc: Mention `AdwValueObject` removal in the migration guide
- Date: Tue, 31 Aug 2021 09:15:43 +0000 (UTC)
commit a5f4a69b577b936996d7296c8be53a8d2d999340
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 956afc99..75cc4bd2 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
@@ -170,6 +175,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]