docs: Link GtkStringObject from GtkStringList
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 21 Sep 2023 14:27:35 +0000 (15:27 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 28 Sep 2023 00:42:44 +0000 (20:42 -0400)
A frequently asked question is: "what is the object type inside a
GtkStringList", so let's make the answer more obvious.

gtk/gtkstringlist.c

index d7e7be3f81f6fcaa1435140f51f95b49594ddbbb..55aa584b34fb09163261aa881df3048d4ef0f9b5 100644 (file)
  *
  * `GtkStringList` is a list model that wraps an array of strings.
  *
- * The objects in the model have a "string" property.
+ * The objects in the model are of type [class@Gtk.StringObject] and have
+ * a "string" property that can be used inside expressions.
  *
  * `GtkStringList` is well-suited for any place where you would
  * typically use a `char*[]`, but need a list model.
  *
- * # GtkStringList as GtkBuildable
+ * ## GtkStringList as GtkBuildable
  *
  * The `GtkStringList` implementation of the `GtkBuildable` interface
  * supports adding items directly using the `<items>` element and