set_sort_func


Description:

[ Version ( since = "3.12" ) ]
public void set_sort_func (owned FlowBoxSortFunc? sort_func)

By setting a sort function on the this, one can dynamically reorder the children of the box, based on the contents of the children.

The sort_func will be called for each child after the call, and will continue to be called each time a child changes (via changed) and when invalidate_sort is called.

Note that using a sort function is incompatible with using a model (see bind_model).

Parameters:

this

a FlowBox

sort_func

the sort function

destroy

destroy notifier for user_data

user_data

user data passed to sort_func