set_sort_func


Description:

public void set_sort_func (owned ListBoxSortFunc? sort_func)

Sets a sort function.

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

The sort_func will be called for each row after the call, and will continue to be called each time a row changes (via [ [email protected]]) and when [[email protected]_sort] is called.

Note that using a sort function is incompatible with using a model (see [[email protected]_model]).

Parameters:

this

a `GtkListBox`

sort_func

the sort function

destroy

destroy notifier for user_data

user_data

user data passed to sort_func




2022 vala-language.org