GListModel docs: It's get_n_items(), not get_length().

This commit is contained in:
Murray Cumming 2015-09-16 14:30:29 +02:00
parent 3bd1618ea9
commit 846e206146

View File

@ -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