## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Recent_Chooser

- Goto spec source

# Description

    package Gtk.Recent_Chooser is

Gtk_Recent_Chooser is an interface that can be implemented by widgets displaying the list of recently used files. In GTK+, the main objects that implement this interface are Gtk_Recent_Chooser_Widget, Gtk_Recent_Chooser_Dialog and Gtk_Recent_Chooser_Menu.

Binding from C File version 2.16.6

# Packages

### User_Sort_Func (generic)

Full description

# Types

### Gtk_Recent_Chooser

- Goto declaration in source

    type Gtk_Recent_Chooser is new Glib.Types.GType_Interface;

### Gtk_Recent_Sort_Type

- Goto declaration in source

    type Gtk_Recent_Sort_Type is
         (Gtk_Recent_Sort_None,
          Gtk_Recent_Sort_Mru,
          Gtk_Recent_Sort_Lru,
          Gtk_Recent_Sort_Custom);

# Constants & Global variables

### Filter_Property

- Goto declaration in source

(Glib.Properties.Property_Object)

    Filter_Property          : constant Glib.Properties.Property_Object;

### Limit_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Limit_Property           : constant Glib.Properties.Property_Int;

### Local_Only_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Local_Only_Property      : constant Glib.Properties.Property_Boolean;

### Recent_Manager_Property

- Goto declaration in source

(Glib.Properties.Property_Object)

    Recent_Manager_Property  : constant Glib.Properties.Property_Object;

### Select_Multiple_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Select_Multiple_Property : constant Glib.Properties.Property_Boolean;

### Show_Icons_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Show_Icons_Property      : constant Glib.Properties.Property_Boolean;

### Show_Not_Found_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Show_Not_Found_Property  : constant Glib.Properties.Property_Boolean;

### Show_Private_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Show_Private_Property    : constant Glib.Properties.Property_Boolean;

### Show_Tips_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Show_Tips_Property       : constant Glib.Properties.Property_Boolean;

### Sort_Type_Property

- Goto declaration in source

(Glib.Properties.Property_Enum)

    Sort_Type_Property       : constant Glib.Properties.Property_Enum;

# Subprograms & Entries

### Error_Quark

- Goto spec in source
- Goto body in source

    function Error_Quark return GQuark;

### Get_Type

- Goto spec in source
- Goto body in source

    function Get_Type return GType;

### Get_Current_Item

- Goto spec in source

    function Get_Current_Item (Chooser: Gtk_Recent_Chooser) return Gtk.Recent_Manager.Gtk_Recent_Info;

Gets the Gtk_Recent_Info currently selected by Chooser. Use Gtk.Recent_Manager.Unref when you have finished using it.

### Get_Current_Uri

- Goto spec in source

    function Get_Current_Uri (Chooser: Gtk_Recent_Chooser) return String;

### Set_Current_Uri

- Goto spec in source

    function Set_Current_Uri (Chooser: Gtk_Recent_Chooser;Uri: String;Error: Glib.Error.GError := null) return Boolean;

Gets/Sets Uri as the current URI for Chooser. Set_Current_Uri returns whether the URI was found.

### Get_Items

- Goto spec in source

    function Get_Items (Chooser: Gtk_Recent_Chooser) return Gtk.Recent_Manager.Gtk_Recent_Info_List.Glist;

Gets the list of recently used resources in form of Gtk_Recent_Info objects. The return value of this function is affected by the "sort-type" and "limit" properties of Chooser. You should Gtk.Recent_Manager.Unref on every item of the list, and then free the list itself using Gtk_Recent_Info_List.Free.

### Get_Uris

- Goto spec in source

    function Get_Uris (Chooser: Gtk_Recent_Chooser) return GNAT.Strings.String_List;

Gets the URIs of the recently used resources. The return value of this function is affected by the "sort-type" and "limit" properties of Chooser.

### Get_Limit

- Goto spec in source

    function Get_Limit (Chooser: Gtk_Recent_Chooser) return Gint;

### Set_Limit

- Goto spec in source

    procedure Set_Limit (Chooser: Gtk_Recent_Chooser;Limit: Gint);

Gets/Sets the number of items that should be returned by Get_Items and Get_Uris. Use -1 to specify all items.

### Get_Local_Only

- Goto spec in source

    function Get_Local_Only (Chooser: Gtk_Recent_Chooser) return Boolean;

### Set_Local_Only

- Goto spec in source

    procedure Set_Local_Only (Chooser: Gtk_Recent_Chooser;Local_Only: Boolean);

Whether only local resources, that is resources using the file:// URI scheme, should be shown in the recently used resources selector. If Local_Only is True (the default) then the shown resources are guaranteed to be accessible through the operating system native file system.

### Get_Show_Icons

- Goto spec in source

    function Get_Show_Icons (Chooser: Gtk_Recent_Chooser) return Boolean;

### Set_Show_Icons

- Goto spec in source

    procedure Set_Show_Icons (Chooser: Gtk_Recent_Chooser;Show_Icons: Boolean);

Whether Chooser should show an icon near the resource.

### Get_Show_Not_Found

- Goto spec in source

    function Get_Show_Not_Found (Chooser: Gtk_Recent_Chooser) return Boolean;

### Set_Show_Not_Found

- Goto spec in source

    procedure Set_Show_Not_Found (Chooser: Gtk_Recent_Chooser;Show_Not_Found: Boolean);

Whether Chooser should display the recently used resources that it didn't find. This only applies to local resources.

### Get_Show_Private

- Goto spec in source

    function Get_Show_Private (Chooser: Gtk_Recent_Chooser) return Boolean;

### Set_Show_Private

- Goto spec in source

    procedure Set_Show_Private (Chooser: Gtk_Recent_Chooser;Show_Private: Boolean);

Whether to show recently used resources marked registered as private.

### Get_Show_Tips

- Goto spec in source

    function Get_Show_Tips (Chooser: Gtk_Recent_Chooser) return Boolean;

### Set_Show_Tips

- Goto spec in source

    procedure Set_Show_Tips (Chooser: Gtk_Recent_Chooser;Show_Tips: Boolean);

Whether to show a tooltip containing the full path of each recently used resource in a Gtk_Recent_Chooser widget.

### Add_Filter

- Goto spec in source

    procedure Add_Filter (Chooser: Gtk_Recent_Chooser;Filter: access Gtk.Recent_Filter.Gtk_Recent_Filter_Record'Class);

Adds Filter to the list of Gtk_Recent_Filter objects held by Chooser. If no previous filter objects were defined, this function will call Set_Filter.

### Remove_Filter

- Goto spec in source

    procedure Remove_Filter (Chooser: Gtk_Recent_Chooser;Filter: access Gtk.Recent_Filter.Gtk_Recent_Filter_Record'Class);

Removes Filter from the list of Gtk_Recent_Filter objects held by Chooser.

### Get_Filter

- Goto spec in source

    function Get_Filter (Chooser: Gtk_Recent_Chooser) return Gtk.Recent_Filter.Gtk_Recent_Filter;

### Set_Filter

- Goto spec in source

    procedure Set_Filter (Chooser: Gtk_Recent_Chooser;Filter: access Gtk.Recent_Filter.Gtk_Recent_Filter_Record'Class);

Gets/Sets Filter as the current Gtk_Recent_Filter object used by Chooser to affect the displayed recently used resources.

### List_Filters

- Goto spec in source

    function List_Filters (Chooser: Gtk_Recent_Chooser) return Gtk.Recent_Filter.Gtk_Recent_Filter_List.GSlist;

Gets the Gtk_Recent_Filter objects held by Chooser. You should free the returned list using Gtk.Recent_Filter.Gtk_Recent_Filter_List.Free.

### Get_Select_Multiple

- Goto spec in source

    function Get_Select_Multiple (Chooser: Gtk_Recent_Chooser) return Boolean;

### Set_Select_Multiple

- Goto spec in source

    procedure Set_Select_Multiple (Chooser: Gtk_Recent_Chooser;Select_Multiple: Boolean);

Whether Chooser can select multiple items.

### Select_All

- Goto spec in source

    procedure Select_All   (Chooser: Gtk_Recent_Chooser);

### Unselect_All

- Goto spec in source

    procedure Unselect_All (Chooser: Gtk_Recent_Chooser);

Selects/Unselects all the items inside Chooser, if the Chooser supports multiple selection.

### Select_Uri

- Goto spec in source

    function Select_Uri (Chooser: Gtk_Recent_Chooser;Uri: String;Error: Glib.Error.GError := null) return Boolean;

### Unselect_Uri

- Goto spec in source

    procedure Unselect_Uri (Chooser: Gtk_Recent_Chooser;Uri: String);

Selects/Unselects Uri inside Chooser. Select_Uri returns whether the URI was found.

### Get_Sort_Type

- Goto spec in source

    function Get_Sort_Type (Chooser: Gtk_Recent_Chooser) return Gtk_Recent_Sort_Type;

### Set_Sort_Type

- Goto spec in source

    procedure Set_Sort_Type (Chooser: Gtk_Recent_Chooser;Sort_Type: Gtk_Recent_Sort_Type);

Changes the sorting order of the recently used resources list displayed by Chooser.

### Get_Show_Numbers

- Goto spec in source

    function Get_Show_Numbers (Chooser: Gtk_Recent_Chooser) return Boolean;

Get_Show_Numbers

### Set_Show_Numbers

- Goto spec in source

    procedure Set_Show_Numbers (Chooser: Gtk_Recent_Chooser;Show_Numbers: Boolean);

Get_Show_Numbers