Index

Package: Set_Sort_Func_User_Data (generic)

Description

generic
      type User_Data_Type (<>) is private;
      with procedure Destroy (Data : in out User_Data_Type) is null;
   package Set_Sort_Func_User_Data is

Types

User_Data_Type

type User_Data_Type (<>) is private;

Gtk_Recent_Sort_Func

type Gtk_Recent_Sort_Func is access function
        (A         : Gtk.Recent_Info.Gtk_Recent_Info;
         B         : Gtk.Recent_Info.Gtk_Recent_Info;
         User_Data : User_Data_Type) return Gint;

Subprograms & Entries

Destroy

procedure Destroy 
(Data: in out User_Data_Type) is null;

Set_Sort_Func

procedure Set_Sort_Func 
(Chooser: Gtk.Recent_Chooser.Gtk_Recent_Chooser;
Sort_Func: Gtk_Recent_Sort_Func;
Sort_Data: User_Data_Type;
Data_Destroy: Glib.G_Destroy_Notify_Address);
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 Gtk.Recent_Info.Gtk_Recent_Info 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. Since: gtk+ 2.10 "sort_func": the comparison function "sort_data": user data to pass to Sort_Func, or null "data_destroy": destroy notifier for Sort_Data, or null