Index

Package: Recent_Chooser

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)

Types

Gtk_Recent_Chooser

type Gtk_Recent_Chooser is new Glib.Types.GType_Interface;

Gtk_Recent_Sort_Type

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

Recent_Manager_Property (Glib.Properties.Property_Object)

Recent_Manager_Property  : constant Glib.Properties.Property_Object;

Select_Multiple_Property (Glib.Properties.Property_Boolean)

Select_Multiple_Property : constant Glib.Properties.Property_Boolean;

Show_Not_Found_Property (Glib.Properties.Property_Boolean)

Show_Not_Found_Property  : constant Glib.Properties.Property_Boolean;

Show_Private_Property (Glib.Properties.Property_Boolean)

Show_Private_Property    : constant Glib.Properties.Property_Boolean;

Sort_Type_Property (Glib.Properties.Property_Enum)

Sort_Type_Property       : constant Glib.Properties.Property_Enum;

Subprograms & Entries

Error_Quark

function Error_Quark return GQuark;

Get_Type

function Get_Type return GType;

Get_Current_Item

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

function Get_Current_Uri 
(Chooser: Gtk_Recent_Chooser) return String;

Set_Current_Uri

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

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

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

function Get_Limit 
(Chooser: Gtk_Recent_Chooser) return Gint;

Set_Limit

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

function Get_Local_Only 
(Chooser: Gtk_Recent_Chooser) return Boolean;

Set_Local_Only

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

function Get_Show_Icons 
(Chooser: Gtk_Recent_Chooser) return Boolean;

Set_Show_Icons

procedure Set_Show_Icons 
(Chooser: Gtk_Recent_Chooser;
Show_Icons: Boolean);
Whether Chooser should show an icon near the resource.

Get_Show_Not_Found

function Get_Show_Not_Found 
(Chooser: Gtk_Recent_Chooser) return Boolean;

Set_Show_Not_Found

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

function Get_Show_Private 
(Chooser: Gtk_Recent_Chooser) return Boolean;

Set_Show_Private

procedure Set_Show_Private 
(Chooser: Gtk_Recent_Chooser;
Show_Private: Boolean);
Whether to show recently used resources marked registered as private.

Get_Show_Tips

function Get_Show_Tips 
(Chooser: Gtk_Recent_Chooser) return Boolean;

Set_Show_Tips

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

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

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

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

Set_Filter

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

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

function Get_Select_Multiple 
(Chooser: Gtk_Recent_Chooser) return Boolean;

Set_Select_Multiple

procedure Set_Select_Multiple 
(Chooser: Gtk_Recent_Chooser;
Select_Multiple: Boolean);
Whether Chooser can select multiple items.

Select_All

procedure Select_All   
(Chooser: Gtk_Recent_Chooser);

Unselect_All

procedure Unselect_All 
(Chooser: Gtk_Recent_Chooser);
Selects/Unselects all the items inside Chooser, if the Chooser supports multiple selection.

Select_Uri

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

Unselect_Uri

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

function Get_Sort_Type 
(Chooser: Gtk_Recent_Chooser) return Gtk_Recent_Sort_Type;

Set_Sort_Type

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

function Get_Show_Numbers 
(Chooser: Gtk_Recent_Chooser) return Boolean;

Set_Show_Numbers

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