Index

Package: Recent_Action

Description

package Gtk.Recent_Action is

A Gtk.Recent_Action.Gtk_Recent_Action represents a list of recently used files, which can be shown by widgets such as Gtk.Recent_Chooser_Dialog.Gtk_Recent_Chooser_Dialog or Gtk.Recent_Chooser_Menu.Gtk_Recent_Chooser_Menu.

To construct a submenu showing recently used files, use a Gtk.Recent_Action.Gtk_Recent_Action as the action for a <menuitem>. To construct a menu toolbutton showing the recently used files in the popup menu, use a Gtk.Recent_Action.Gtk_Recent_Action as the action for a <toolitem> element.

Packages

Set_Sort_Func_User_Data (generic)

Implements_Gtk_Buildable (new Glib.Types.Implements)

Implements_Gtk_Recent_Chooser (new Glib.Types.Implements)

Classes

Gtk_Recent_Action_Record

type Gtk_Recent_Action_Record is new Gtk_Action_Record with null record;

Ancestors:

Primitive operations:

Get_Current_Item
Get_Current_Uri
Get_Local_Only
Get_Select_Multiple
Get_Show_Icons
Get_Show_Not_Found
Get_Show_Numbers
Get_Show_Private
Get_Show_Tips
Get_Sort_Type
Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)
Gtk.Action.Activate (Inherited)
Gtk.Action.Block_Activate (Inherited)
Gtk.Action.Connect_Accelerator (Inherited)
Gtk.Action.Create_Icon (Inherited)
Gtk.Action.Create_Menu (Inherited)
Gtk.Action.Create_Menu_Item (Inherited)
Gtk.Action.Create_Tool_Item (Inherited)
Gtk.Action.Disconnect_Accelerator (Inherited)
Gtk.Action.Get_Accel_Path (Inherited)
Gtk.Action.Get_Always_Show_Image (Inherited)
Gtk.Action.Get_Gicon (Inherited)
Gtk.Action.Get_Icon_Name (Inherited)
Gtk.Action.Get_Is_Important (Inherited)
Gtk.Action.Get_Label (Inherited)
Gtk.Action.Get_Name (Inherited)
Gtk.Action.Get_Proxies (Inherited)
Gtk.Action.Get_Sensitive (Inherited)
Gtk.Action.Get_Short_Label (Inherited)
Gtk.Action.Get_Stock_Id (Inherited)
Gtk.Action.Get_Tooltip (Inherited)
Gtk.Action.Get_Visible (Inherited)
Gtk.Action.Get_Visible_Horizontal (Inherited)
Gtk.Action.Get_Visible_Vertical (Inherited)
Gtk.Action.Is_Sensitive (Inherited)
Gtk.Action.Is_Visible (Inherited)
Gtk.Action.On_Activate (Inherited)
Gtk.Action.On_Activate (Inherited)
Gtk.Action.Set_Accel_Group (Inherited)
Gtk.Action.Set_Accel_Path (Inherited)
Gtk.Action.Set_Always_Show_Image (Inherited)
Gtk.Action.Set_Gicon (Inherited)
Gtk.Action.Set_Icon_Name (Inherited)
Gtk.Action.Set_Is_Important (Inherited)
Gtk.Action.Set_Label (Inherited)
Gtk.Action.Set_Sensitive (Inherited)
Gtk.Action.Set_Short_Label (Inherited)
Gtk.Action.Set_Stock_Id (Inherited)
Gtk.Action.Set_Tooltip (Inherited)
Gtk.Action.Set_Visible (Inherited)
Gtk.Action.Set_Visible_Horizontal (Inherited)
Gtk.Action.Set_Visible_Vertical (Inherited)
Gtk.Action.Unblock_Activate (Inherited)
List_Filters
Remove_Filter
Set_Current_Uri
Set_Local_Only
Set_Select_Multiple
Set_Show_Icons
Set_Show_Not_Found
Set_Show_Numbers
Set_Show_Private
Set_Show_Tips
Set_Sort_Func
Set_Sort_Type
Unselect_All
Unselect_Uri

Types

Gtk_Recent_Action

type Gtk_Recent_Action is access all Gtk_Recent_Action_Record'Class;

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 Gint;

Constants & Global variables

Show_Numbers_Property (Glib.Properties.Property_Boolean)

Show_Numbers_Property : constant Glib.Properties.Property_Boolean;

Subprograms & Entries

Gtk_New

procedure Gtk_New 
(Widget: out Gtk_Recent_Action;
Name: UTF8_String;
Label: UTF8_String := "";
Tooltip: UTF8_String := "";
Stock_Id: UTF8_String := "");

Initialize

procedure Initialize 
(Widget: not null access Gtk_Recent_Action_Record'Class;
Name: UTF8_String;
Label: UTF8_String := "";
Tooltip: UTF8_String := "";
Stock_Id: UTF8_String := "");
Creates a new Gtk.Recent_Action.Gtk_Recent_Action object. To add the action to a Gtk.Action_Group.Gtk_Action_Group and set the accelerator for the action, call Gtk.Action_Group.Add_Action_With_Accel. Since: gtk+ 2.12 "name": a unique name for the action "label": the label displayed in menu items and on buttons, or null "tooltip": a tooltip for the action, or null "stock_id": the stock icon to display in widgets representing the action, or null

Gtk_Recent_Action_New

function Gtk_Recent_Action_New 
(Name: UTF8_String;
Label: UTF8_String := "";
Tooltip: UTF8_String := "";
Stock_Id: UTF8_String := "") return Gtk_Recent_Action;
Creates a new Gtk.Recent_Action.Gtk_Recent_Action object. To add the action to a Gtk.Action_Group.Gtk_Action_Group and set the accelerator for the action, call Gtk.Action_Group.Add_Action_With_Accel. Since: gtk+ 2.12 "name": a unique name for the action "label": the label displayed in menu items and on buttons, or null "tooltip": a tooltip for the action, or null "stock_id": the stock icon to display in widgets representing the action, or null

Gtk_New_For_Manager

procedure Gtk_New_For_Manager 
(Widget: out Gtk_Recent_Action;
Name: UTF8_String;
Label: UTF8_String := "";
Tooltip: UTF8_String := "";
Stock_Id: UTF8_String := "";
Manager: access Gtk.Recent_Manager.Gtk_Recent_Manager_Record'Class := Gtk.Recent_Manager.Get_Default);

Initialize_For_Manager

procedure Initialize_For_Manager 
(Widget: not null access Gtk_Recent_Action_Record'Class;
Name: UTF8_String;
Label: UTF8_String := "";
Tooltip: UTF8_String := "";
Stock_Id: UTF8_String := "";
Manager: access Gtk.Recent_Manager.Gtk_Recent_Manager_Record'Class := Gtk.Recent_Manager.Get_Default);
Creates a new Gtk.Recent_Action.Gtk_Recent_Action object. To add the action to a Gtk.Action_Group.Gtk_Action_Group and set the accelerator for the action, call Gtk.Action_Group.Add_Action_With_Accel. Since: gtk+ 2.12 "name": a unique name for the action "label": the label displayed in menu items and on buttons, or null "tooltip": a tooltip for the action, or null "stock_id": the stock icon to display in widgets representing the action, or null "manager": a Gtk.Recent_Manager.Gtk_Recent_Manager, or null for using the default Gtk.Recent_Manager.Gtk_Recent_Manager

Gtk_Recent_Action_New_For_Manager

function Gtk_Recent_Action_New_For_Manager 
(Name: UTF8_String;
Label: UTF8_String := "";
Tooltip: UTF8_String := "";
Stock_Id: UTF8_String := "";
Manager: access Gtk.Recent_Manager.Gtk_Recent_Manager_Record'Class := Gtk.Recent_Manager.Get_Default) return Gtk_Recent_Action;
Creates a new Gtk.Recent_Action.Gtk_Recent_Action object. To add the action to a Gtk.Action_Group.Gtk_Action_Group and set the accelerator for the action, call Gtk.Action_Group.Add_Action_With_Accel. Since: gtk+ 2.12 "name": a unique name for the action "label": the label displayed in menu items and on buttons, or null "tooltip": a tooltip for the action, or null "stock_id": the stock icon to display in widgets representing the action, or null "manager": a Gtk.Recent_Manager.Gtk_Recent_Manager, or null for using the default Gtk.Recent_Manager.Gtk_Recent_Manager

Get_Type

function Get_Type return Glib.GType;

Get_Show_Numbers

function Get_Show_Numbers 
(Widget: not null access Gtk_Recent_Action_Record) return Boolean;
Returns the value set by Gtk.Recent_Chooser_Menu.Set_Show_Numbers. Since: gtk+ 2.12

Set_Show_Numbers

procedure Set_Show_Numbers 
(Widget: not null access Gtk_Recent_Action_Record;
Show_Numbers: Boolean);
Sets whether a number should be added to the items shown by the widgets representing Action. The numbers are shown to provide a unique character for a mnemonic to be used inside the menu item's label. Only the first ten items get a number to avoid clashes. Since: gtk+ 2.12 "show_numbers": True if the shown items should be numbered

Set_Sort_Func

procedure Set_Sort_Func 
(Chooser: not null access Gtk_Recent_Action_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 "sort_func": the comparison function "data_destroy": destroy notifier for Sort_Data, or null

Add_Filter

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

Get_Current_Item

function Get_Current_Item 
(Chooser: not null access Gtk_Recent_Action_Record) return Gtk.Recent_Info.Gtk_Recent_Info;

Get_Current_Uri

function Get_Current_Uri 
(Chooser: not null access Gtk_Recent_Action_Record) return UTF8_String;

Set_Current_Uri

function Set_Current_Uri 
(Chooser: not null access Gtk_Recent_Action_Record;
URI: UTF8_String) return Boolean;

Get_Filter

function Get_Filter 
(Chooser: not null access Gtk_Recent_Action_Record) return Gtk.Recent_Filter.Gtk_Recent_Filter;

Set_Filter

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

Get_Items

function Get_Items 
(Chooser: not null access Gtk_Recent_Action_Record) return Gtk.Recent_Manager.Gtk_Recent_Info_List.Glist;

Get_Limit

function Get_Limit 
(Chooser: not null access Gtk_Recent_Action_Record) return Gint;

Set_Limit

procedure Set_Limit 
(Chooser: not null access Gtk_Recent_Action_Record;
Limit: Gint);

Get_Local_Only

function Get_Local_Only 
(Chooser: not null access Gtk_Recent_Action_Record) return Boolean;

Set_Local_Only

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

Get_Select_Multiple

function Get_Select_Multiple 
(Chooser: not null access Gtk_Recent_Action_Record) return Boolean;

Set_Select_Multiple

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

Get_Show_Icons

function Get_Show_Icons 
(Chooser: not null access Gtk_Recent_Action_Record) return Boolean;

Set_Show_Icons

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

Get_Show_Not_Found

function Get_Show_Not_Found 
(Chooser: not null access Gtk_Recent_Action_Record) return Boolean;

Set_Show_Not_Found

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

Get_Show_Private

function Get_Show_Private 
(Chooser: not null access Gtk_Recent_Action_Record) return Boolean;

Set_Show_Private

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

Get_Show_Tips

function Get_Show_Tips 
(Chooser: not null access Gtk_Recent_Action_Record) return Boolean;

Set_Show_Tips

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

Get_Sort_Type

function Get_Sort_Type 
(Chooser: not null access Gtk_Recent_Action_Record) return Gtk.Recent_Chooser.Gtk_Recent_Sort_Type;

Set_Sort_Type

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

List_Filters

function List_Filters 
(Chooser: not null access Gtk_Recent_Action_Record) return Gtk.Recent_Filter.Gtk_Recent_Filter_List.GSlist;

Remove_Filter

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

Select_All

procedure Select_All 
(Chooser: not null access Gtk_Recent_Action_Record);

Select_Uri

function Select_Uri 
(Chooser: not null access Gtk_Recent_Action_Record;
URI: UTF8_String) return Boolean;

Unselect_All

procedure Unselect_All 
(Chooser: not null access Gtk_Recent_Action_Record);

Unselect_Uri

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