RecentChooserT.setSortFunc

Sets the comparison function used when sorting to be sort_func. If the chooser has the sort type set to GTK_RECENT_SORT_CUSTOM then the chooser will sort using this function.

To the comparison function will be passed two gtk.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.

template RecentChooserT(TStruct)
void
setSortFunc

Parameters

sortFunc GtkRecentSortFunc

the comparison function

sortData void*

user data to pass to sort_func, or NULL

dataDestroy GDestroyNotify

destroy notifier for sort_data, or NULL

Meta

Since

2.10