## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Recent_Action

- Goto spec source

# Description

    package Gtk.Recent_Action is

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

To construct a submenu showing recently used files, use a 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 as the action for a toolitem element.

Binding from C File version 2.16.6

# Classes

### Gtk_Recent_Action_Record

- Goto declaration in source
- Goto full declaration in source

    type Gtk_Recent_Action_Record is
         new Gtk.Action.Gtk_Action_Record with private;

#### Ancestors:

Gtk.Action.Gtk_Action_Record
Glib.Object.GObject_Record

#### Primitive operations:

Get_Show_Numbers

- To API doc
- To spec

Glib.Object.Deallocate

- To API doc
- To spec

(Inherited)
Glib.Object.Get_Type

- To API doc
- To spec

(Inherited)
Glib.Object.Notify

- To API doc
- To spec

(Inherited)
Glib.Object.Ref

- To API doc
- To spec

(Inherited)
Glib.Object.Ref_Sink

- To API doc
- To spec

(Inherited)
Glib.Object.Unref

- To API doc
- To spec

(Inherited)
Gtk.Action.Activate

- To API doc
- To spec

(Inherited)
Gtk.Action.Block_Activate

- To API doc
- To spec

(Inherited)
Gtk.Action.Block_Activate_From

- To API doc
- To spec

(Inherited)
Gtk.Action.Connect_Accelerator

- To API doc
- To spec

(Inherited)
Gtk.Action.Connect_Proxy

- To API doc
- To spec

(Inherited)
Gtk.Action.Create_Icon

- To API doc
- To spec

(Inherited)
Gtk.Action.Create_Menu

- To API doc
- To spec

(Inherited)
Gtk.Action.Create_Menu_Item

- To API doc
- To spec

(Inherited)
Gtk.Action.Create_Tool_Item

- To API doc
- To spec

(Inherited)
Gtk.Action.Disconnect_Accelerator

- To API doc
- To spec

(Inherited)
Gtk.Action.Disconnect_Proxy

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Accel_Path

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_GIcon

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Icon_Name

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Is_Important

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Label

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Name

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Proxies

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Sensitive

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Short_Label

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Stock_Id

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Tooltip

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Visible

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Visible_Horizontal

- To API doc
- To spec

(Inherited)
Gtk.Action.Get_Visible_Vertical

- To API doc
- To spec

(Inherited)
Gtk.Action.Is_Sensitive

- To API doc
- To spec

(Inherited)
Gtk.Action.Is_Visible

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Accel_Group

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Accel_Path

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_GIcon

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Icon_Name

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Is_Important

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Label

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Sensitive

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Short_Label

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Stock_Id

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Tooltip

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Visible

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Visible_Horizontal

- To API doc
- To spec

(Inherited)
Gtk.Action.Set_Visible_Vertical

- To API doc
- To spec

(Inherited)
Gtk.Action.Unblock_Activate

- To API doc
- To spec

(Inherited)
Gtk.Action.Unblock_Activate_From

- To API doc
- To spec

(Inherited)
Set_Show_Numbers

- To API doc
- To spec

# Types

### Gtk_Recent_Action

- Goto declaration in source

    type Gtk_Recent_Action is access all Gtk_Recent_Action_Record'Class;

# Constants & Global variables

### Show_Numbers_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Show_Numbers_Property : constant Glib.Properties.Property_Boolean;

# Subprograms & Entries

### Gtk_New

- Goto spec in source

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

### Initialize

- Goto spec in source

    procedure Initialize (Widget: access Gtk_Recent_Action_Record'Class;Name: String;Label: String := "";Tooltip: String := "";Stock_Id: String := "");

Name: a unique name for the action Label: the label displayed in menu items and on buttons Tooltip: a tooltip for the action Stock_Id: the stock icon to display in widgets representing the action Creates a new Gtk_Recent_Action object. To add the action to a Gtk_Action_Group and set the accelerator for the action, call Gtk.Action_Group.Add_Action_With_Accel.

### Get_Type

- Goto spec in source
- Goto body in source

    function Get_Type return GType;

Return the internal value associated with this widget.

### Gtk_New_For_Manager

- Goto spec in source

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

### Initialize_For_Manager

- Goto spec in source

    procedure Initialize_For_Manager (Widget: access Gtk_Recent_Action_Record'Class;Name: String;Label: String := "";Tooltip: String := "";Stock_Id: String := "";Manager: access Gtk.Recent_Manager.Gtk_Recent_Manager_Record'Class := Gtk.Recent_Manager.Get_Default);

Name: a unique name for the action Label: the label displayed in menu items and on buttons Tooltip: a tooltip for the action Stock_Id: the stock icon to display in widgets representing the action manager: a Gtk_Recent_Manager, or use the default Gtk_Recent_Manager Creates a new Gtk_Recent_Action object. To add the action to a Gtk_Action_Group and set the accelerator for the action, call gtk_action_group_add_action_with_accel().

### Get_Show_Numbers

- Goto spec in source

    function Get_Show_Numbers (Action: access Gtk_Recent_Action_Record) return Boolean;

### Set_Show_Numbers

- Goto spec in source

    procedure Set_Show_Numbers (Action: access Gtk_Recent_Action_Record;Show_Numbers: Boolean);

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.