6.29 GtkTreeListModelCreateModelFunc

Callback: GtkTreeListModelCreateModelFunc

A procedure given for it is called as (procedure item) ⇒ %return.

Prototype of the function called to create new child models when tree-list-row:set-expanded is called.

This function can return #f 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.

item

Passed: a <GObject>.

The item that is being expanded

%return

Returned: a <GListModel>, or #f.

The model tracking the children of item or #f if item can never have children

user-data

Not passed: it is the user data that guile-gi supplied.

User data passed when registering the function