Method

GtkTreeModelfilter_new

since: 2.4

Declaration [src]

GtkTreeModel*
gtk_tree_model_filter_new (
  GtkTreeModel* child_model,
  GtkTreePath* root
)

Description [src]

Creates a new GtkTreeModel, with child_model as the child_model and root as the virtual root.

Available since: 2.4

Parameters

root

Type: GtkTreePath

A GtkTreePath or NULL.

The argument can be NULL.
The data is owned by the caller of the method.

Return value

Type: GtkTreeModel

A new GtkTreeModel.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.