Constructor
GtkTreeListModelnew
Declaration [src]
GtkTreeListModel*
gtk_tree_list_model_new (
GListModel* root,
gboolean passthrough,
gboolean autoexpand,
GtkTreeListModelCreateModelFunc create_func,
gpointer user_data,
GDestroyNotify user_destroy
)
Parameters
root-
Type:
GObjectThe
GListModelto use as root.The called function takes ownership of the data, and is responsible for freeing it. passthrough-
Type:
gbooleanTRUEto pass through items from the models. autoexpand-
Type:
gbooleanTRUEto set the autoexpand property and expand therootmodel. create_func-
Type:
GtkTreeListModelCreateModelFuncFunction to call to create the
GListModelfor the children of an item. user_data-
Type:
gpointerData to pass to
create_func.The argument can be NULL.The data is owned by the caller of the function. user_destroy-
Type:
GDestroyNotifyFunction to call to free
user_data.
Return value
Type: GtkTreeListModel
A newly created GtkTreeListModel.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |