gtk-0.12.5.0: Binding to the Gtk+ graphical user interface library.

Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net
Safe HaskellNone

Graphics.UI.Gtk.ActionMenuToolbar.RecentAction

Contents

Description

An action of which represents a list of recently used files

  • Module available since Gtk+ version 2.12

Synopsis

Detail

A RecentAction represents a list of recently used files, which can be shown by widgets such as RecentChooserDialog or RecentChooserMenu.

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

Class Hierarchy

 | GObject
 | +----Action
 | +----RecentAction

Types

Constructors

recentActionNewSource

Arguments

:: String

name - a unique name for the action

-> Maybe String

label - the label displayed in menu items and on buttons, or Nothing

-> Maybe String

tooltip - a tooltip for the action, or Nothing

-> Maybe String

stockId - the stock icon to display in widgets representing the action, or Nothing

-> IO RecentAction 

Creates a new RecentAction object. To add the action to a ActionGroup and set the accelerator for the action, call actionGroupAddActionWithAccel.

recentActionNewForManagerSource

Arguments

:: RecentManagerClass manager 
=> String

name - a unique name for the action

-> Maybe String

label - the label displayed in menu items and on buttons, or Nothing

-> Maybe String

tooltip - a tooltip for the action, or Nothing

-> Maybe String

stockId - the stock icon to display in widgets representing the action, or Nothing

-> Maybe manager

manager - a RecentManager, or Nothing for the default RecentManager

-> IO RecentAction 

Creates a new RecentAction object. To add the action to a ActionGroup and set the accelerator for the action, call actionGroupAddActionWithAccel.

Attributes

recentActionShowNumbers :: RecentActionClass self => Attr self BoolSource

If recent items should be shown with numbers next to them.