mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
GListModel docs: It's get_n_items(), not get_length().
This commit is contained in:
parent
3bd1618ea9
commit
846e206146
@ -61,7 +61,7 @@ G_DEFINE_INTERFACE (GListModel, g_list_model, G_TYPE_OBJECT);
|
|||||||
* interface, in which case all objects in the list must implement it.
|
* interface, in which case all objects in the list must implement it.
|
||||||
*
|
*
|
||||||
* The semantics are close to that of an array:
|
* The semantics are close to that of an array:
|
||||||
* g_list_model_get_length() returns the number of items in the list and
|
* g_list_model_get_n_items() returns the number of items in the list and
|
||||||
* g_list_model_get_item() returns an item at a (0-based) position. In
|
* g_list_model_get_item() returns an item at a (0-based) position. In
|
||||||
* order to allow implementations to calculate the list length lazily,
|
* order to allow implementations to calculate the list length lazily,
|
||||||
* you can also iterate over items: starting from 0, repeatedly call
|
* you can also iterate over items: starting from 0, repeatedly call
|
||||||
|
Loading…
Reference in New Issue
Block a user