## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: User_Sort_Func (generic)

- Goto spec source

# Description

    generic
          type Data_Type is private;
       package User_Sort_Func is

# Types

### Data_Type

- Goto declaration in source

    type Data_Type is private;

### Data_Type_Access

- Goto declaration in source

    type Data_Type_Access is access Data_Type;

### Comparison

- Goto declaration in source

    type Comparison is (Before, Equal, After);

### Gtk_Recent_Sort_Func

- Goto declaration in source

    type Gtk_Recent_Sort_Func is access function
            (Left, Right : Gtk.Recent_Manager.Gtk_Recent_Info;
             User_Data   : Data_Type_Access)
             return Comparison;

Return whether the Left comes Before, After, or is Equal to, the right.

### Destroy_Notify

- Goto declaration in source

    type Destroy_Notify is access procedure (User_Data : in out Data_Type);

This procedure will be called just prior to the destruction of Sort_Data.

# Subprograms & Entries

### Set_Sort_Func

- Goto spec in source

    procedure Set_Sort_Func (Chooser: Gtk_Recent_Chooser;Sort_Func: Gtk_Recent_Sort_Func;Sort_Data: Data_Type_Access := null;Data_Destroy: Destroy_Notify := null);

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.