Function

Gtk.MapListModelMapFunc

Declaration

GObject*
MapListModelMapFunc (
  GObject* item,
  gpointer user_data
)

Description

User function that is called to map an item of the original model to an item expected by the map model.

The returned items must conform to the item type of the model they are used with.

Parameters

item GObject*
 

The item to map

 Ownership of the data is transferred
user_data gpointer
 

user data

Return value

Returns: GObject*

The item to map to. This function may not return NULL

Ownership of the data is transferred