Gtk.Recent_Chooser.Set_Sort_Func_User_Data

Entities

Generic formal parameters

Access Types

Subprograms

Description

Destroy

procedure Destroy (Data : in out User_Data_Type)
Parameters
Data

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 Glib.Gint;
Parameters
A
B
User_Data
Return Value

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

Parameters
Chooser
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

User_Data_Type

type User_Data_Type (<>) is private;