Method
GtkRecentChooserset_sort_func
since: 2.10
Declaration [src]
void
gtk_recent_chooser_set_sort_func (
GtkRecentChooser* chooser,
GtkRecentSortFunc sort_func,
gpointer sort_data,
GDestroyNotify data_destroy
)
Description [src]
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 GtkRecentInfo
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.
Available since: 2.10
Parameters
sort_func
-
Type:
GtkRecentSortFunc
The comparison function.
sort_data
-
Type:
gpointer
User data to pass to
sort_func
, orNULL
.The argument can be NULL
.The data is owned by the caller of the method. data_destroy
-
Type:
GDestroyNotify
Destroy notifier for
sort_data
, orNULL
.The argument can be NULL
.