Method

GioListModelget_item

since: 2.44

Declaration

gpointer
g_list_model_get_item (
  GListModel* list,
  guint position
)

Description

Get the item at position.

If position is greater than the number of items in list, NULL is returned.

NULL is never returned for an index that is smaller than the length of the list.

See also: g_list_model_get_n_items()

Available since: 2.44

This method is not directly available to language bindings.

The implementation of this method is provided by g_list_model_get_object() in language bindings

Parameters

position

Type: guint

The position of the item to fetch.

Return value

Type: gpointer

The item at position.

The caller of the method takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.