set_sort_func


Description:

[ Version ( since = "2.10" ) ]
public abstract void set_sort_func (owned RecentSortFunc sort_func)

Sets the comparison function used when sorting to be sort_func.

If the this has the sort type set to CUSTOM then the chooser will sort using this function.

To the comparison function will be passed two RecentInfo structs and sort_data ; sort_func should return a positive integer if the first item comes before the second, zero if the two items are equal and a negative integer if the first item comes after the second.

Parameters:

this

a RecentChooser

sort_func

the comparison function

data_destroy

destroy notifier for sort_data, or null

sort_data

user data to pass to sort_func, or null




2022 vala-language.org