Package: gtk

Function gtk-list-box-set-sort-func

Lambda List

gtk-list-box-set-sort-func (listbox func)

Arguments

listbox -- a gtk-list-box widget
func -- a gtk-list-box-sort-func callback function for the sort function

Details

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

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

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

See also

*2021-12-15