Index

Package: Recent_Action

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

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

Ancestors:

Primitive operations:

Get_Show_Numbers
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.Block_Activate_From (Inherited)
Gtk.Action.Connect_Accelerator (Inherited)
Gtk.Action.Connect_Proxy (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.Disconnect_Proxy (Inherited)
Gtk.Action.Get_Accel_Path (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.Set_Accel_Group (Inherited)
Gtk.Action.Set_Accel_Path (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)
Gtk.Action.Unblock_Activate_From (Inherited)
Set_Show_Numbers

Types

Gtk_Recent_Action

type Gtk_Recent_Action is access all Gtk_Recent_Action_Record'Class;

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: String;
Label: String := "";
Tooltip: String := "";
Stock_Id: String := "");

Initialize

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

function Get_Type return GType;
Return the internal value associated with this widget.

Gtk_New_For_Manager

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

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

function Get_Show_Numbers 
(Action: access Gtk_Recent_Action_Record) return Boolean;

Set_Show_Numbers

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.