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 |
RecentChooserMenu
is a widget suitable for displaying recently used files
inside a menu. It can be used to set a sub-menu of a MenuItem
using
menuItemSetSubmenu
, or as the menu of a MenuToolButton
.
Note that RecentChooserMenu
does not have any methods of its own. Instead,
you should use the functions that work on a RecentChooser
.
Note also that RecentChooserMenu
does not support multiple filters, as it
has no way to let the user choose between them as the RecentChooserWidget
and RecentChooserDialog
widgets do. Thus using recentChooserAddFilter
on a RecentChooserMenu
widget will yield the same effects as using
recentChooserSetFilter
, replacing any currently set filter
with the supplied filter; recentChooserRemoveFilter
will remove
any currently set RecentFilter
object and will unset the current filter;
recentChooserListFilters
will return a list containing a single
RecentFilter
object.
Recently used files are supported since GTK+ 2.10.
- newtype RecentChooserMenu = RecentChooserMenu (ManagedPtr RecentChooserMenu)
- class GObject o => IsRecentChooserMenu o
- toRecentChooserMenu :: IsRecentChooserMenu o => o -> IO RecentChooserMenu
- noRecentChooserMenu :: Maybe RecentChooserMenu
- data RecentChooserMenuGetShowNumbersMethodInfo
- recentChooserMenuGetShowNumbers :: (HasCallStack, MonadIO m, IsRecentChooserMenu a) => a -> m Bool
- recentChooserMenuNew :: (HasCallStack, MonadIO m) => m RecentChooserMenu
- recentChooserMenuNewForManager :: (HasCallStack, MonadIO m, IsRecentManager a) => a -> m RecentChooserMenu
- data RecentChooserMenuSetShowNumbersMethodInfo
- recentChooserMenuSetShowNumbers :: (HasCallStack, MonadIO m, IsRecentChooserMenu a) => a -> Bool -> m ()
- data RecentChooserMenuShowNumbersPropertyInfo
- constructRecentChooserMenuShowNumbers :: IsRecentChooserMenu o => Bool -> IO (GValueConstruct o)
- getRecentChooserMenuShowNumbers :: (MonadIO m, IsRecentChooserMenu o) => o -> m Bool
- recentChooserMenuShowNumbers :: AttrLabelProxy "showNumbers"
- setRecentChooserMenuShowNumbers :: (MonadIO m, IsRecentChooserMenu o) => o -> Bool -> m ()
Exported types
newtype RecentChooserMenu Source #
GObject RecentChooserMenu Source # | |
IsImplementorIface RecentChooserMenu Source # | |
IsObject RecentChooserMenu Source # | |
IsWidget RecentChooserMenu Source # | |
IsMenuShell RecentChooserMenu Source # | |
IsMenu RecentChooserMenu Source # | |
IsContainer RecentChooserMenu Source # | |
IsRecentChooser RecentChooserMenu Source # | |
IsBuildable RecentChooserMenu Source # | |
IsActivatable RecentChooserMenu Source # | |
IsRecentChooserMenu RecentChooserMenu Source # | |
((~) * info (ResolveRecentChooserMenuMethod t RecentChooserMenu), MethodInfo * info RecentChooserMenu p) => IsLabel t (RecentChooserMenu -> p) Source # | |
((~) * info (ResolveRecentChooserMenuMethod t RecentChooserMenu), MethodInfo * info RecentChooserMenu p) => IsLabelProxy t (RecentChooserMenu -> p) Source # | |
HasAttributeList * RecentChooserMenu Source # | |
type AttributeList RecentChooserMenu Source # | |
type SignalList RecentChooserMenu Source # | |
class GObject o => IsRecentChooserMenu o Source #
toRecentChooserMenu :: IsRecentChooserMenu o => o -> IO RecentChooserMenu Source #
Methods
getShowNumbers
data RecentChooserMenuGetShowNumbersMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsRecentChooserMenu a) => MethodInfo * RecentChooserMenuGetShowNumbersMethodInfo a signature Source # | |
recentChooserMenuGetShowNumbers Source #
:: (HasCallStack, MonadIO m, IsRecentChooserMenu a) | |
=> a |
|
-> m Bool | Returns: |
Returns the value set by recentChooserMenuSetShowNumbers
.
Since: 2.10
new
:: (HasCallStack, MonadIO m) | |
=> m RecentChooserMenu | Returns: a new |
Creates a new RecentChooserMenu
widget.
This kind of widget shows the list of recently used resources as a menu, each item as a menu item. Each item inside the menu might have an icon, representing its MIME type, and a number, for mnemonic access.
This widget implements the RecentChooser
interface.
This widget creates its own RecentManager
object. See the
recentChooserMenuNewForManager
function to know how to create
a RecentChooserMenu
widget bound to another RecentManager
object.
Since: 2.10
newForManager
recentChooserMenuNewForManager Source #
:: (HasCallStack, MonadIO m, IsRecentManager a) | |
=> a |
|
-> m RecentChooserMenu | Returns: a new |
Creates a new RecentChooserMenu
widget using manager
as
the underlying recently used resources manager.
This is useful if you have implemented your own recent manager,
or if you have a customized instance of a RecentManager
object or if you wish to share a common RecentManager
object
among multiple RecentChooser
widgets.
Since: 2.10
setShowNumbers
data RecentChooserMenuSetShowNumbersMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsRecentChooserMenu a) => MethodInfo * RecentChooserMenuSetShowNumbersMethodInfo a signature Source # | |
recentChooserMenuSetShowNumbers Source #
:: (HasCallStack, MonadIO m, IsRecentChooserMenu a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether a number should be added to the items of menu
. The
numbers are shown to provide a unique character for a mnemonic to
be used inside ten menu item’s label. Only the first the items
get a number to avoid clashes.
Since: 2.10
Properties
showNumbers
data RecentChooserMenuShowNumbersPropertyInfo Source #
constructRecentChooserMenuShowNumbers :: IsRecentChooserMenu o => Bool -> IO (GValueConstruct o) Source #
getRecentChooserMenuShowNumbers :: (MonadIO m, IsRecentChooserMenu o) => o -> m Bool Source #
recentChooserMenuShowNumbers :: AttrLabelProxy "showNumbers" Source #
setRecentChooserMenuShowNumbers :: (MonadIO m, IsRecentChooserMenu o) => o -> Bool -> m () Source #