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