Index

Package: User_Sort_Func (generic)

Description

generic
      type Data_Type is private;
   package User_Sort_Func is

Types

Data_Type

type Data_Type is private;

Data_Type_Access

type Data_Type_Access is access Data_Type;

Comparison

type Comparison is (Before, Equal, After);

Gtk_Recent_Sort_Func

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

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

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.