Constructor
GtkMapListModelnew
Declaration [src]
GtkMapListModel*
gtk_map_list_model_new (
GListModel* model,
GtkMapListModelMapFunc map_func,
gpointer user_data,
GDestroyNotify user_destroy
)
Parameters
model |
GObject |
The model to map. |
|
The argument can be NULL . | |
The called function takes ownership of the data, and is responsible for freeing it. | |
map_func |
GtkMapListModelMapFunc |
Map function. |
|
The argument can be NULL . | |
user_data |
gpointer |
User data passed to |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
user_destroy |
GDestroyNotify |
Destroy notifier for |
Return value
Returns: | GtkMapListModel |
A new |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. |