Gtk.Recent_Chooser_Widget

Entities

Tagged Types

Access Types

Subprograms

Generic Instantiations

Description

Gtk.Recent_Chooser_Widget.Gtk_Recent_Chooser_Widget is a widget suitable for selecting recently used files. It is the main building block of a Gtk.Recent_Chooser_Dialog.Gtk_Recent_Chooser_Dialog. Most applications will only need to use the latter; you can use Gtk.Recent_Chooser_Widget.Gtk_Recent_Chooser_Widget as part of a larger window if you have special needs.

Note that Gtk.Recent_Chooser_Widget.Gtk_Recent_Chooser_Widget does not have any methods of its own. Instead, you should use the functions that work on a Gtk.Recent_Chooser.Gtk_Recent_Chooser.

Recently used files are supported since GTK+ 2.10.

"+"

function "+"
  (Widget : access Gtk_Recent_Chooser_Widget_Record'Class)
return Gtk.Buildable.Gtk_Buildable
Parameters
Widget
Return Value

"+"

function "+"
  (Widget : access Gtk_Recent_Chooser_Widget_Record'Class)
return Gtk.Orientable.Gtk_Orientable
Parameters
Widget
Return Value

"+"

function "+"
  (Widget : access Gtk_Recent_Chooser_Widget_Record'Class)
return Gtk.Recent_Chooser.Gtk_Recent_Chooser
Parameters
Widget
Return Value

"-"

function "-"
  (Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Recent_Chooser_Widget
Parameters
Interf
Return Value

"-"

function "-"
  (Interf : Gtk.Orientable.Gtk_Orientable)
return Gtk_Recent_Chooser_Widget
Parameters
Interf
Return Value

"-"

function "-"
  (Interf : Gtk.Recent_Chooser.Gtk_Recent_Chooser)
return Gtk_Recent_Chooser_Widget
Parameters
Interf
Return Value

Add_Filter

procedure Add_Filter
   (Chooser : not null access Gtk_Recent_Chooser_Widget_Record;
    Filter  : not null access Gtk.Recent_Filter.Gtk_Recent_Filter_Record'Class)
Parameters
Chooser
Filter

Get_Current_Item

function Get_Current_Item
   (Chooser : not null access Gtk_Recent_Chooser_Widget_Record)
    return Gtk.Recent_Info.Gtk_Recent_Info
Parameters
Chooser
Return Value

Get_Current_Uri

function Get_Current_Uri
   (Chooser : not null access Gtk_Recent_Chooser_Widget_Record)
    return UTF8_String
Parameters
Chooser
Return Value

Get_Filter

function Get_Filter
   (Chooser : not null access Gtk_Recent_Chooser_Widget_Record)
    return Gtk.Recent_Filter.Gtk_Recent_Filter
Parameters
Chooser
Return Value

Get_Items

function Get_Items
   (Chooser : not null access Gtk_Recent_Chooser_Widget_Record)
    return Gtk.Recent_Manager.Gtk_Recent_Info_List.Glist
Parameters
Chooser
Return Value

Get_Limit

function Get_Limit
   (Chooser : not null access Gtk_Recent_Chooser_Widget_Record)
    return Glib.Gint
Parameters
Chooser
Return Value

Get_Local_Only

function Get_Local_Only
   (Chooser : not null access Gtk_Recent_Chooser_Widget_Record)
    return Boolean
Parameters
Chooser
Return Value

Get_Orientation

function Get_Orientation
   (Self : not null access Gtk_Recent_Chooser_Widget_Record)
    return Gtk.Enums.Gtk_Orientation
Parameters
Self
Return Value

Get_Select_Multiple

function Get_Select_Multiple
   (Chooser : not null access Gtk_Recent_Chooser_Widget_Record)
    return Boolean
Parameters
Chooser
Return Value

Get_Show_Icons

function Get_Show_Icons
   (Chooser : not null access Gtk_Recent_Chooser_Widget_Record)
    return Boolean
Parameters
Chooser
Return Value

Get_Show_Not_Found

function Get_Show_Not_Found
   (Chooser : not null access Gtk_Recent_Chooser_Widget_Record)
    return Boolean
Parameters
Chooser
Return Value

Get_Show_Private

function Get_Show_Private
   (Chooser : not null access Gtk_Recent_Chooser_Widget_Record)
    return Boolean
Parameters
Chooser
Return Value

Get_Show_Tips

function Get_Show_Tips
   (Chooser : not null access Gtk_Recent_Chooser_Widget_Record)
    return Boolean
Parameters
Chooser
Return Value

Get_Sort_Type

function Get_Sort_Type
   (Chooser : not null access Gtk_Recent_Chooser_Widget_Record)
    return Gtk.Recent_Chooser.Gtk_Recent_Sort_Type
Parameters
Chooser
Return Value

Get_Type

function Get_Type return Glib.GType
Return Value

Gtk_New

procedure Gtk_New (Widget : out Gtk_Recent_Chooser_Widget)

Creates a new Gtk.Recent_Chooser_Widget.Gtk_Recent_Chooser_Widget object. This is an embeddable widget used to access the recently used resources list. Since: gtk+ 2.10 Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Widget

Gtk_New_For_Manager

procedure Gtk_New_For_Manager
   (Widget  : out Gtk_Recent_Chooser_Widget;
    Manager : not null access Gtk.Recent_Manager.Gtk_Recent_Manager_Record'Class)

Creates a new Gtk.Recent_Chooser_Widget.Gtk_Recent_Chooser_Widget with a specified recent manager. This is useful if you have implemented your own recent manager, or if you have a customized instance of a Gtk.Recent_Manager.Gtk_Recent_Manager object. Since: gtk+ 2.10 Initialize_For_Manager does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Widget
Manager

a Gtk.Recent_Manager.Gtk_Recent_Manager

Gtk_Recent_Chooser_Widget

type Gtk_Recent_Chooser_Widget is access all Gtk_Recent_Chooser_Widget_Record'Class;

Gtk_Recent_Chooser_Widget_New

function Gtk_Recent_Chooser_Widget_New return Gtk_Recent_Chooser_Widget

Creates a new Gtk.Recent_Chooser_Widget.Gtk_Recent_Chooser_Widget object. This is an embeddable widget used to access the recently used resources list. Since: gtk+ 2.10

Return Value

Gtk_Recent_Chooser_Widget_New_For_Manager

function Gtk_Recent_Chooser_Widget_New_For_Manager
   (Manager : not null access Gtk.Recent_Manager.Gtk_Recent_Manager_Record'Class)
    return Gtk_Recent_Chooser_Widget

Creates a new Gtk.Recent_Chooser_Widget.Gtk_Recent_Chooser_Widget with a specified recent manager. This is useful if you have implemented your own recent manager, or if you have a customized instance of a Gtk.Recent_Manager.Gtk_Recent_Manager object. Since: gtk+ 2.10

Parameters
Manager

a Gtk.Recent_Manager.Gtk_Recent_Manager

Return Value

Gtk_Recent_Chooser_Widget_Record

type Gtk_Recent_Chooser_Widget_Record is new Gtk_Box_Record with null record;

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

Implements_Gtk_Buildable

package Implements_Gtk_Buildable is new Glib.Types.Implements
  (Gtk.Buildable.Gtk_Buildable, Gtk_Recent_Chooser_Widget_Record, Gtk_Recent_Chooser_Widget);

Implements_Gtk_Orientable

package Implements_Gtk_Orientable is new Glib.Types.Implements
  (Gtk.Orientable.Gtk_Orientable, Gtk_Recent_Chooser_Widget_Record, Gtk_Recent_Chooser_Widget);

Implements_Gtk_Recent_Chooser

package Implements_Gtk_Recent_Chooser is new Glib.Types.Implements
  (Gtk.Recent_Chooser.Gtk_Recent_Chooser, Gtk_Recent_Chooser_Widget_Record, Gtk_Recent_Chooser_Widget);

Initialize

procedure Initialize
   (Widget : not null access Gtk_Recent_Chooser_Widget_Record'Class)

Creates a new Gtk.Recent_Chooser_Widget.Gtk_Recent_Chooser_Widget object. This is an embeddable widget used to access the recently used resources list. Since: gtk+ 2.10 Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Widget

Initialize_For_Manager

procedure Initialize_For_Manager
   (Widget  : not null access Gtk_Recent_Chooser_Widget_Record'Class;
    Manager : not null access Gtk.Recent_Manager.Gtk_Recent_Manager_Record'Class)

Creates a new Gtk.Recent_Chooser_Widget.Gtk_Recent_Chooser_Widget with a specified recent manager. This is useful if you have implemented your own recent manager, or if you have a customized instance of a Gtk.Recent_Manager.Gtk_Recent_Manager object. Since: gtk+ 2.10 Initialize_For_Manager does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Widget
Manager

a Gtk.Recent_Manager.Gtk_Recent_Manager

List_Filters

function List_Filters
   (Chooser : not null access Gtk_Recent_Chooser_Widget_Record)
    return Gtk.Recent_Filter.Gtk_Recent_Filter_List.GSlist
Parameters
Chooser
Return Value

Remove_Filter

procedure Remove_Filter
   (Chooser : not null access Gtk_Recent_Chooser_Widget_Record;
    Filter  : not null access Gtk.Recent_Filter.Gtk_Recent_Filter_Record'Class)
Parameters
Chooser
Filter

Select_All

procedure Select_All
   (Chooser : not null access Gtk_Recent_Chooser_Widget_Record)
Parameters
Chooser

Select_Uri

function Select_Uri
   (Chooser : not null access Gtk_Recent_Chooser_Widget_Record;
    URI     : UTF8_String) return Boolean
Parameters
Chooser
URI
Return Value

Set_Current_Uri

function Set_Current_Uri
   (Chooser : not null access Gtk_Recent_Chooser_Widget_Record;
    URI     : UTF8_String) return Boolean
Parameters
Chooser
URI
Return Value

Set_Filter

procedure Set_Filter
   (Chooser : not null access Gtk_Recent_Chooser_Widget_Record;
    Filter  : access Gtk.Recent_Filter.Gtk_Recent_Filter_Record'Class)
Parameters
Chooser
Filter

Set_Limit

procedure Set_Limit
   (Chooser : not null access Gtk_Recent_Chooser_Widget_Record;
    Limit   : Glib.Gint)
Parameters
Chooser
Limit

Set_Local_Only

procedure Set_Local_Only
   (Chooser    : not null access Gtk_Recent_Chooser_Widget_Record;
    Local_Only : Boolean)
Parameters
Chooser
Local_Only

Set_Orientation

procedure Set_Orientation
   (Self        : not null access Gtk_Recent_Chooser_Widget_Record;
    Orientation : Gtk.Enums.Gtk_Orientation)
Parameters
Self
Orientation

Set_Select_Multiple

procedure Set_Select_Multiple
   (Chooser         : not null access Gtk_Recent_Chooser_Widget_Record;
    Select_Multiple : Boolean)
Parameters
Chooser
Select_Multiple

Set_Show_Icons

procedure Set_Show_Icons
   (Chooser    : not null access Gtk_Recent_Chooser_Widget_Record;
    Show_Icons : Boolean)
Parameters
Chooser
Show_Icons

Set_Show_Not_Found

procedure Set_Show_Not_Found
   (Chooser        : not null access Gtk_Recent_Chooser_Widget_Record;
    Show_Not_Found : Boolean)
Parameters
Chooser
Show_Not_Found

Set_Show_Private

procedure Set_Show_Private
   (Chooser      : not null access Gtk_Recent_Chooser_Widget_Record;
    Show_Private : Boolean)
Parameters
Chooser
Show_Private

Set_Show_Tips

procedure Set_Show_Tips
   (Chooser   : not null access Gtk_Recent_Chooser_Widget_Record;
    Show_Tips : Boolean)
Parameters
Chooser
Show_Tips

Set_Sort_Func

procedure Set_Sort_Func
   (Chooser      : not null access Gtk_Recent_Chooser_Widget_Record;
    Sort_Func    : Gtk_Recent_Sort_Func;
    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

Data_Destroy

destroy notifier for Sort_Data, or null

Set_Sort_Type

procedure Set_Sort_Type
   (Chooser   : not null access Gtk_Recent_Chooser_Widget_Record;
    Sort_Type : Gtk.Recent_Chooser.Gtk_Recent_Sort_Type)
Parameters
Chooser
Sort_Type

Unselect_All

procedure Unselect_All
   (Chooser : not null access Gtk_Recent_Chooser_Widget_Record)
Parameters
Chooser

Unselect_Uri

procedure Unselect_Uri
   (Chooser : not null access Gtk_Recent_Chooser_Widget_Record;
    URI     : UTF8_String)
Parameters
Chooser
URI