Package: gtk

Function gtk-flow-box-set-sort-func

Lambda List

gtk-flow-box-set-sort-func (flowbox func)

Arguments

flowbox -- a gtk-flow-box widget
func -- a gtk-flow-box-sort-func callback function for the sort function

Details

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

The func function will be called for each child after the call, and will continue to be called each time a child changes, via the gtk-flow-box-child-changed function, and when the gtk-flow-box-invalidate-sort function is called.

Note that using a sort function is incompatible with using a model. See the gtk-flow-box-bind-model function.
 

See also

2021-12-6