CustomSorter.setSortFunc

Sets (or unsets) the function used for sorting items.

If @sort_func is %NULL, all items are considered equal.

If the sort func changes its sorting behavior, gtk_sorter_changed() needs to be called.

If a previous function was set, its @user_destroy will be called now.

class CustomSorter
void
setSortFunc
(
GCompareDataFunc sortFunc
,
void* userData
,
GDestroyNotify userDestroy
)

Parameters

sortFunc GCompareDataFunc

function to sort items

userData void*

user data to pass to @match_func

userDestroy GDestroyNotify

destroy notify for @user_data

Meta