[glib] GListModel docs: It's get_n_items(), not get_length().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GListModel docs: It's get_n_items(), not get_length().
- Date: Wed, 16 Sep 2015 12:30:42 +0000 (UTC)
commit 846e206146c2f0b6b5321d245004d262c7d585a3
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Sep 16 14:30:29 2015 +0200
GListModel docs: It's get_n_items(), not get_length().
gio/glistmodel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/glistmodel.c b/gio/glistmodel.c
index 5737449..e68ef02 100644
--- a/gio/glistmodel.c
+++ b/gio/glistmodel.c
@@ -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.
*
* 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
* order to allow implementations to calculate the list length lazily,
* you can also iterate over items: starting from 0, repeatedly call
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]