Merge branch 'wip/chergert/fix-listmodel-docs' into 'main'

listmodel: add documentation about unique instances

Closes #3030

See merge request GNOME/glib!3474
This commit is contained in:
Philip Withnall 2023-06-22 13:57:18 +00:00
commit 3637c2c47f

View File

@ -124,6 +124,8 @@ G_DEFINE_INTERFACE (GListModel, g_list_model, G_TYPE_OBJECT)
* %NULL is never returned for an index that is smaller than the length
* of the list. See g_list_model_get_n_items().
*
* The same #GObject instance may not appear more than once in a #GListModel.
*
* Returns: (type GObject) (transfer full) (nullable): the object at @position.
*
* Since: 2.44