Method

GioListModelget_object

Declaration

GObject*
g_list_model_get_object (
  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 g_list_model_get_n_items().

Available since:2.44

Parameters

position guint
 

The position of the item to fetch.

Return value

Returns: GObject
 

The object at position.

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