since: 4.0


(* GtkTreeListModelCreateModelFunc) (
  GObject* item,
  gpointer user_data

Description [src]

Prototype of the function called to create new child models when gtk_tree_list_row_set_expanded() is called.

This function can return NULL to indicate that item is guaranteed to be a leaf node and will never have children. If it does not have children but may get children later, it should return an empty model that is filled once children arrive.

Available since: 4.0



Type: GObject

The item that is being expanded.

The data is owned by the caller of the function.

Type: gpointer

User data passed when registering the function.

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

Return value

Type: A list model of GObject

The model tracking the children of item or NULL if item can never have children.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.