Package: gtk

Function gtk-recent-chooser-set-sort-func

Lambda List

gtk-recent-chooser-set-sort-func (chooser func)

Arguments

chooser -- a gtk-recent-chooser object
func -- a gtk-recent-sort-func comparison function

Details

Sets the comparison function used when sorting to be func. If the chooser has the sort type set to the :custom value then the chooser will sort using this function.

To the comparison function will be passed two gtk-recent-info instances. The func callback function 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. gtk-recent-sort-func
 

See also

2021-12-26