| Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gtk.Objects.RecentAction
Description
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.
- newtype RecentAction = RecentAction (ManagedPtr RecentAction)
- class GObject o => IsRecentAction o
- toRecentAction :: IsRecentAction o => o -> IO RecentAction
- noRecentAction :: Maybe RecentAction
- data RecentActionGetShowNumbersMethodInfo
- recentActionGetShowNumbers :: (HasCallStack, MonadIO m, IsRecentAction a) => a -> m Bool
- recentActionNew :: (HasCallStack, MonadIO m) => Text -> Maybe Text -> Maybe Text -> Maybe Text -> m RecentAction
- recentActionNewForManager :: (HasCallStack, MonadIO m, IsRecentManager a) => Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe a -> m RecentAction
- data RecentActionSetShowNumbersMethodInfo
- recentActionSetShowNumbers :: (HasCallStack, MonadIO m, IsRecentAction a) => a -> Bool -> m ()
- data RecentActionShowNumbersPropertyInfo
- constructRecentActionShowNumbers :: IsRecentAction o => Bool -> IO (GValueConstruct o)
- getRecentActionShowNumbers :: (MonadIO m, IsRecentAction o) => o -> m Bool
- recentActionShowNumbers :: AttrLabelProxy "showNumbers"
- setRecentActionShowNumbers :: (MonadIO m, IsRecentAction o) => o -> Bool -> m ()
Exported types
newtype RecentAction Source #
Constructors
| RecentAction (ManagedPtr RecentAction) |
Instances
| GObject RecentAction Source # | |
| IsObject RecentAction Source # | |
| IsAction RecentAction Source # | |
| IsRecentChooser RecentAction Source # | |
| IsBuildable RecentAction Source # | |
| IsRecentAction RecentAction Source # | |
| ((~) * info (ResolveRecentActionMethod t RecentAction), MethodInfo * info RecentAction p) => IsLabel t (RecentAction -> p) Source # | |
| ((~) * info (ResolveRecentActionMethod t RecentAction), MethodInfo * info RecentAction p) => IsLabelProxy t (RecentAction -> p) Source # | |
| HasAttributeList * RecentAction Source # | |
| type AttributeList RecentAction Source # | |
| type SignalList RecentAction Source # | |
class GObject o => IsRecentAction o Source #
Instances
toRecentAction :: IsRecentAction o => o -> IO RecentAction Source #
Methods
getShowNumbers
data RecentActionGetShowNumbersMethodInfo Source #
Instances
| ((~) * signature (m Bool), MonadIO m, IsRecentAction a) => MethodInfo * RecentActionGetShowNumbersMethodInfo a signature Source # | |
recentActionGetShowNumbers Source #
Arguments
| :: (HasCallStack, MonadIO m, IsRecentAction a) | |
| => a |
|
| -> m Bool | Returns: |
Deprecated: (Since version 3.10)
Returns the value set by recentChooserMenuSetShowNumbers.
Since: 2.12
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> Maybe Text |
|
| -> Maybe Text |
|
| -> Maybe Text |
|
| -> m RecentAction | Returns: the newly created |
Deprecated: (Since version 3.10)
Creates a new RecentAction object. To add the action to
a ActionGroup and set the accelerator for the action,
call actionGroupAddActionWithAccel.
Since: 2.12
newForManager
recentActionNewForManager Source #
Arguments
| :: (HasCallStack, MonadIO m, IsRecentManager a) | |
| => Text |
|
| -> Maybe Text |
|
| -> Maybe Text |
|
| -> Maybe Text |
|
| -> Maybe a |
|
| -> m RecentAction | Returns: the newly created |
Deprecated: (Since version 3.10)
Creates a new RecentAction object. To add the action to
a ActionGroup and set the accelerator for the action,
call actionGroupAddActionWithAccel.
Since: 2.12
setShowNumbers
data RecentActionSetShowNumbersMethodInfo Source #
Instances
| ((~) * signature (Bool -> m ()), MonadIO m, IsRecentAction a) => MethodInfo * RecentActionSetShowNumbersMethodInfo a signature Source # | |
recentActionSetShowNumbers Source #
Arguments
| :: (HasCallStack, MonadIO m, IsRecentAction a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Deprecated: (Since version 3.10)
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: 2.12
Properties
showNumbers
data RecentActionShowNumbersPropertyInfo Source #
Instances
constructRecentActionShowNumbers :: IsRecentAction o => Bool -> IO (GValueConstruct o) Source #
getRecentActionShowNumbers :: (MonadIO m, IsRecentAction o) => o -> m Bool Source #
recentActionShowNumbers :: AttrLabelProxy "showNumbers" Source #
setRecentActionShowNumbers :: (MonadIO m, IsRecentAction o) => o -> Bool -> m () Source #