Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Actions are organised into groups. An action group is essentially a
map from names to Action
objects.
All actions that would make sense to use in a particular context should be in a single group. Multiple action groups may be used for a particular user interface. In fact, it is expected that most nontrivial applications will make use of multiple groups. For example, in an application that can edit multiple documents, one group holding global actions (e.g. quit, about, new), and one group per document holding actions that act on that document (eg. save, cut/copy/paste, etc). Each window’s menus would be constructed from a combination of two action groups.
## Accelerators ## {Action
-Accel}
Accelerators are handled by the GTK+ accelerator map. All actions are
assigned an accelerator path (which normally has the form
<Actions>/group-name/action-name
) and a shortcut is associated with
this accelerator path. All menuitems and toolitems take on this accelerator
path. The GTK+ accelerator map code makes sure that the correct shortcut
is displayed next to the menu item.
# GtkActionGroup as GtkBuildable # {tActionGroup
-BUILDER-UI}
The ActionGroup
implementation of the Buildable
interface accepts
Action
objects as <child> elements in UI definitions.
Note that it is probably more common to define actions and action groups in the code, since they are directly related to what the code can do.
The GtkActionGroup implementation of the GtkBuildable interface supports
a custom <accelerator> element, which has attributes named “key“ and
“modifiers“ and allows to specify accelerators. This is similar to the
<accelerator> element of Widget
, the main difference is that
it doesn’t allow you to specify a signal.
## A Dialog
UI definition fragment. ##
>
>class="GtkActionGroup" id="actiongroup"
> child
> class="GtkAction" id="About"
> name="name"About/property
> name="stock_id"gtk-about/property
> handler="about_activate" name="activate"/
> /object
> key="F1" modifiers="GDK_CONTROL_MASK | GDK_SHIFT_MASK"/
> /child
>/object
Synopsis
- newtype ActionGroup = ActionGroup (ManagedPtr ActionGroup)
- class (GObject o, IsDescendantOf ActionGroup o) => IsActionGroup o
- toActionGroup :: (MonadIO m, IsActionGroup o) => o -> m ActionGroup
- actionGroupAddAction :: (HasCallStack, MonadIO m, IsActionGroup a, IsAction b) => a -> b -> m ()
- actionGroupAddActionWithAccel :: (HasCallStack, MonadIO m, IsActionGroup a, IsAction b) => a -> b -> Maybe Text -> m ()
- actionGroupGetAccelGroup :: (HasCallStack, MonadIO m, IsActionGroup a) => a -> m AccelGroup
- actionGroupGetAction :: (HasCallStack, MonadIO m, IsActionGroup a) => a -> Text -> m (Maybe Action)
- actionGroupGetName :: (HasCallStack, MonadIO m, IsActionGroup a) => a -> m Text
- actionGroupGetSensitive :: (HasCallStack, MonadIO m, IsActionGroup a) => a -> m Bool
- actionGroupGetVisible :: (HasCallStack, MonadIO m, IsActionGroup a) => a -> m Bool
- actionGroupListActions :: (HasCallStack, MonadIO m, IsActionGroup a) => a -> m [Action]
- actionGroupNew :: (HasCallStack, MonadIO m) => Text -> m ActionGroup
- actionGroupRemoveAction :: (HasCallStack, MonadIO m, IsActionGroup a, IsAction b) => a -> b -> m ()
- actionGroupSetAccelGroup :: (HasCallStack, MonadIO m, IsActionGroup a, IsAccelGroup b) => a -> Maybe b -> m ()
- actionGroupSetSensitive :: (HasCallStack, MonadIO m, IsActionGroup a) => a -> Bool -> m ()
- actionGroupSetTranslateFunc :: (HasCallStack, MonadIO m, IsActionGroup a) => a -> TranslateFunc -> m ()
- actionGroupSetTranslationDomain :: (HasCallStack, MonadIO m, IsActionGroup a) => a -> Maybe Text -> m ()
- actionGroupSetVisible :: (HasCallStack, MonadIO m, IsActionGroup a) => a -> Bool -> m ()
- actionGroupTranslateString :: (HasCallStack, MonadIO m, IsActionGroup a) => a -> Text -> m Text
- clearActionGroupAccelGroup :: (MonadIO m, IsActionGroup o) => o -> m ()
- constructActionGroupAccelGroup :: (IsActionGroup o, MonadIO m, IsAccelGroup a) => a -> m (GValueConstruct o)
- getActionGroupAccelGroup :: (MonadIO m, IsActionGroup o) => o -> m AccelGroup
- setActionGroupAccelGroup :: (MonadIO m, IsActionGroup o, IsAccelGroup a) => o -> a -> m ()
- constructActionGroupName :: (IsActionGroup o, MonadIO m) => Text -> m (GValueConstruct o)
- getActionGroupName :: (MonadIO m, IsActionGroup o) => o -> m Text
- constructActionGroupSensitive :: (IsActionGroup o, MonadIO m) => Bool -> m (GValueConstruct o)
- getActionGroupSensitive :: (MonadIO m, IsActionGroup o) => o -> m Bool
- setActionGroupSensitive :: (MonadIO m, IsActionGroup o) => o -> Bool -> m ()
- constructActionGroupVisible :: (IsActionGroup o, MonadIO m) => Bool -> m (GValueConstruct o)
- getActionGroupVisible :: (MonadIO m, IsActionGroup o) => o -> m Bool
- setActionGroupVisible :: (MonadIO m, IsActionGroup o) => o -> Bool -> m ()
- type ActionGroupConnectProxyCallback = Action -> Widget -> IO ()
- type C_ActionGroupConnectProxyCallback = Ptr () -> Ptr Action -> Ptr Widget -> Ptr () -> IO ()
- afterActionGroupConnectProxy :: (IsActionGroup a, MonadIO m) => a -> ActionGroupConnectProxyCallback -> m SignalHandlerId
- genClosure_ActionGroupConnectProxy :: MonadIO m => ActionGroupConnectProxyCallback -> m (GClosure C_ActionGroupConnectProxyCallback)
- mk_ActionGroupConnectProxyCallback :: C_ActionGroupConnectProxyCallback -> IO (FunPtr C_ActionGroupConnectProxyCallback)
- noActionGroupConnectProxyCallback :: Maybe ActionGroupConnectProxyCallback
- onActionGroupConnectProxy :: (IsActionGroup a, MonadIO m) => a -> ActionGroupConnectProxyCallback -> m SignalHandlerId
- wrap_ActionGroupConnectProxyCallback :: ActionGroupConnectProxyCallback -> C_ActionGroupConnectProxyCallback
- type ActionGroupDisconnectProxyCallback = Action -> Widget -> IO ()
- type C_ActionGroupDisconnectProxyCallback = Ptr () -> Ptr Action -> Ptr Widget -> Ptr () -> IO ()
- afterActionGroupDisconnectProxy :: (IsActionGroup a, MonadIO m) => a -> ActionGroupDisconnectProxyCallback -> m SignalHandlerId
- genClosure_ActionGroupDisconnectProxy :: MonadIO m => ActionGroupDisconnectProxyCallback -> m (GClosure C_ActionGroupDisconnectProxyCallback)
- mk_ActionGroupDisconnectProxyCallback :: C_ActionGroupDisconnectProxyCallback -> IO (FunPtr C_ActionGroupDisconnectProxyCallback)
- noActionGroupDisconnectProxyCallback :: Maybe ActionGroupDisconnectProxyCallback
- onActionGroupDisconnectProxy :: (IsActionGroup a, MonadIO m) => a -> ActionGroupDisconnectProxyCallback -> m SignalHandlerId
- wrap_ActionGroupDisconnectProxyCallback :: ActionGroupDisconnectProxyCallback -> C_ActionGroupDisconnectProxyCallback
- type ActionGroupPostActivateCallback = Action -> IO ()
- type C_ActionGroupPostActivateCallback = Ptr () -> Ptr Action -> Ptr () -> IO ()
- afterActionGroupPostActivate :: (IsActionGroup a, MonadIO m) => a -> ActionGroupPostActivateCallback -> m SignalHandlerId
- genClosure_ActionGroupPostActivate :: MonadIO m => ActionGroupPostActivateCallback -> m (GClosure C_ActionGroupPostActivateCallback)
- mk_ActionGroupPostActivateCallback :: C_ActionGroupPostActivateCallback -> IO (FunPtr C_ActionGroupPostActivateCallback)
- noActionGroupPostActivateCallback :: Maybe ActionGroupPostActivateCallback
- onActionGroupPostActivate :: (IsActionGroup a, MonadIO m) => a -> ActionGroupPostActivateCallback -> m SignalHandlerId
- wrap_ActionGroupPostActivateCallback :: ActionGroupPostActivateCallback -> C_ActionGroupPostActivateCallback
- type ActionGroupPreActivateCallback = Action -> IO ()
- type C_ActionGroupPreActivateCallback = Ptr () -> Ptr Action -> Ptr () -> IO ()
- afterActionGroupPreActivate :: (IsActionGroup a, MonadIO m) => a -> ActionGroupPreActivateCallback -> m SignalHandlerId
- genClosure_ActionGroupPreActivate :: MonadIO m => ActionGroupPreActivateCallback -> m (GClosure C_ActionGroupPreActivateCallback)
- mk_ActionGroupPreActivateCallback :: C_ActionGroupPreActivateCallback -> IO (FunPtr C_ActionGroupPreActivateCallback)
- noActionGroupPreActivateCallback :: Maybe ActionGroupPreActivateCallback
- onActionGroupPreActivate :: (IsActionGroup a, MonadIO m) => a -> ActionGroupPreActivateCallback -> m SignalHandlerId
- wrap_ActionGroupPreActivateCallback :: ActionGroupPreActivateCallback -> C_ActionGroupPreActivateCallback
Exported types
newtype ActionGroup Source #
Memory-managed wrapper type.
ActionGroup (ManagedPtr ActionGroup) |
Instances
Eq ActionGroup Source # | |
Defined in GI.Gtk.Objects.ActionGroup (==) :: ActionGroup -> ActionGroup -> Bool # (/=) :: ActionGroup -> ActionGroup -> Bool # | |
GObject ActionGroup Source # | |
Defined in GI.Gtk.Objects.ActionGroup | |
ManagedPtrNewtype ActionGroup Source # | |
Defined in GI.Gtk.Objects.ActionGroup toManagedPtr :: ActionGroup -> ManagedPtr ActionGroup | |
TypedObject ActionGroup Source # | |
Defined in GI.Gtk.Objects.ActionGroup | |
HasParentTypes ActionGroup Source # | |
Defined in GI.Gtk.Objects.ActionGroup | |
IsGValue (Maybe ActionGroup) Source # | Convert |
Defined in GI.Gtk.Objects.ActionGroup gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe ActionGroup -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe ActionGroup) | |
type ParentTypes ActionGroup Source # | |
Defined in GI.Gtk.Objects.ActionGroup |
class (GObject o, IsDescendantOf ActionGroup o) => IsActionGroup o Source #
Type class for types which can be safely cast to ActionGroup
, for instance with toActionGroup
.
Instances
(GObject o, IsDescendantOf ActionGroup o) => IsActionGroup o Source # | |
Defined in GI.Gtk.Objects.ActionGroup |
toActionGroup :: (MonadIO m, IsActionGroup o) => o -> m ActionGroup Source #
Cast to ActionGroup
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
addAction, addActionWithAccel, addChild, bindProperty, bindPropertyFull, constructChild, customFinished, customTagEnd, customTagStart, forceFloating, freezeNotify, getv, isFloating, listActions, notify, notifyByPspec, parserFinished, ref, refSink, removeAction, runDispose, stealData, stealQdata, thawNotify, translateString, unref, watchClosure.
Getters
getAccelGroup, getAction, getData, getInternalChild, getName, getProperty, getQdata, getSensitive, getVisible.
Setters
setAccelGroup, setBuildableProperty, setData, setDataFull, setName, setProperty, setSensitive, setTranslateFunc, setTranslationDomain, setVisible.
addAction
:: (HasCallStack, MonadIO m, IsActionGroup a, IsAction b) | |
=> a |
|
-> b |
|
-> m () |
Deprecated: (Since version 3.10)
Adds an action object to the action group. Note that this function
does not set up the accel path of the action, which can lead to problems
if a user tries to modify the accelerator of a menuitem associated with
the action. Therefore you must either set the accel path yourself with
actionSetAccelPath
, or use
gtk_action_group_add_action_with_accel (..., NULL)
.
Since: 2.4
addActionWithAccel
actionGroupAddActionWithAccel Source #
:: (HasCallStack, MonadIO m, IsActionGroup a, IsAction b) | |
=> a |
|
-> b |
|
-> Maybe Text |
|
-> m () |
Deprecated: (Since version 3.10)
Adds an action object to the action group and sets up the accelerator.
If accelerator
is Nothing
, attempts to use the accelerator associated
with the stock_id of the action.
Accel paths are set to <Actions>/group-name/action-name
.
Since: 2.4
getAccelGroup
actionGroupGetAccelGroup Source #
:: (HasCallStack, MonadIO m, IsActionGroup a) | |
=> a |
|
-> m AccelGroup | Returns: the accelerator group associated with this action
group or |
Deprecated: (Since version 3.10)
Gets the accelerator group.
Since: 3.6
getAction
:: (HasCallStack, MonadIO m, IsActionGroup a) | |
=> a |
|
-> Text |
|
-> m (Maybe Action) | Returns: the action, or |
Deprecated: (Since version 3.10)
Looks up an action in the action group by name.
Since: 2.4
getName
:: (HasCallStack, MonadIO m, IsActionGroup a) | |
=> a |
|
-> m Text | Returns: the name of the action group. |
Deprecated: (Since version 3.10)
Gets the name of the action group.
Since: 2.4
getSensitive
actionGroupGetSensitive Source #
:: (HasCallStack, MonadIO m, IsActionGroup a) | |
=> a |
|
-> m Bool | Returns: |
Deprecated: (Since version 3.10)
Returns True
if the group is sensitive. The constituent actions
can only be logically sensitive (see actionIsSensitive
) if
they are sensitive (see actionGetSensitive
) and their group
is sensitive.
Since: 2.4
getVisible
actionGroupGetVisible Source #
:: (HasCallStack, MonadIO m, IsActionGroup a) | |
=> a |
|
-> m Bool | Returns: |
Deprecated: (Since version 3.10)
Returns True
if the group is visible. The constituent actions
can only be logically visible (see actionIsVisible
) if
they are visible (see actionGetVisible
) and their group
is visible.
Since: 2.4
listActions
actionGroupListActions Source #
:: (HasCallStack, MonadIO m, IsActionGroup a) | |
=> a |
|
-> m [Action] | Returns: an allocated list of the action objects in the action group |
Deprecated: (Since version 3.10)
Lists the actions in the action group.
Since: 2.4
new
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m ActionGroup | Returns: the new |
Deprecated: (Since version 3.10)
Creates a new ActionGroup
object. The name of the action group
is used when associating [keybindings][Action-Accel]
with the actions.
Since: 2.4
removeAction
actionGroupRemoveAction Source #
:: (HasCallStack, MonadIO m, IsActionGroup a, IsAction b) | |
=> a |
|
-> b |
|
-> m () |
Deprecated: (Since version 3.10)
Removes an action object from the action group.
Since: 2.4
setAccelGroup
actionGroupSetAccelGroup Source #
:: (HasCallStack, MonadIO m, IsActionGroup a, IsAccelGroup b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Deprecated: (Since version 3.10)
Sets the accelerator group to be used by every action in this group.
Since: 3.6
setSensitive
actionGroupSetSensitive Source #
:: (HasCallStack, MonadIO m, IsActionGroup a) | |
=> a |
|
-> Bool |
|
-> m () |
Deprecated: (Since version 3.10)
Changes the sensitivity of actionGroup
Since: 2.4
setTranslateFunc
actionGroupSetTranslateFunc Source #
:: (HasCallStack, MonadIO m, IsActionGroup a) | |
=> a |
|
-> TranslateFunc |
|
-> m () |
Deprecated: (Since version 3.10)
Sets a function to be used for translating the label
and tooltip
of
GtkActionEntrys
added by gtk_action_group_add_actions()
.
If you’re using gettext()
, it is enough to set the translation domain
with actionGroupSetTranslationDomain
.
Since: 2.4
setTranslationDomain
actionGroupSetTranslationDomain Source #
:: (HasCallStack, MonadIO m, IsActionGroup a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Deprecated: (Since version 3.10)
Sets the translation domain and uses dgettext
for translating the
label
and tooltip
of GtkActionEntrys
added by
gtk_action_group_add_actions()
.
If you’re not using gettext()
for localization, see
actionGroupSetTranslateFunc
.
Since: 2.4
setVisible
actionGroupSetVisible Source #
:: (HasCallStack, MonadIO m, IsActionGroup a) | |
=> a |
|
-> Bool |
|
-> m () |
Deprecated: (Since version 3.10)
Changes the visible of actionGroup
.
Since: 2.4
translateString
actionGroupTranslateString Source #
:: (HasCallStack, MonadIO m, IsActionGroup a) | |
=> a |
|
-> Text |
|
-> m Text | Returns: the translation of |
Deprecated: (Since version 3.10)
Translates a string using the function set with
actionGroupSetTranslateFunc
. This
is mainly intended for language bindings.
Since: 2.6
Properties
accelGroup
The accelerator group the actions of this group should use.
clearActionGroupAccelGroup :: (MonadIO m, IsActionGroup o) => o -> m () Source #
Set the value of the “accel-group
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#accelGroup
constructActionGroupAccelGroup :: (IsActionGroup o, MonadIO m, IsAccelGroup a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “accel-group
” property. This is rarely needed directly, but it is used by new
.
getActionGroupAccelGroup :: (MonadIO m, IsActionGroup o) => o -> m AccelGroup Source #
Get the value of the “accel-group
” property.
When overloading is enabled, this is equivalent to
get
actionGroup #accelGroup
setActionGroupAccelGroup :: (MonadIO m, IsActionGroup o, IsAccelGroup a) => o -> a -> m () Source #
Set the value of the “accel-group
” property.
When overloading is enabled, this is equivalent to
set
actionGroup [ #accelGroup:=
value ]
name
A name for the action.
constructActionGroupName :: (IsActionGroup o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “name
” property. This is rarely needed directly, but it is used by new
.
getActionGroupName :: (MonadIO m, IsActionGroup o) => o -> m Text Source #
Get the value of the “name
” property.
When overloading is enabled, this is equivalent to
get
actionGroup #name
sensitive
Whether the action group is enabled.
constructActionGroupSensitive :: (IsActionGroup o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “sensitive
” property. This is rarely needed directly, but it is used by new
.
getActionGroupSensitive :: (MonadIO m, IsActionGroup o) => o -> m Bool Source #
Get the value of the “sensitive
” property.
When overloading is enabled, this is equivalent to
get
actionGroup #sensitive
setActionGroupSensitive :: (MonadIO m, IsActionGroup o) => o -> Bool -> m () Source #
Set the value of the “sensitive
” property.
When overloading is enabled, this is equivalent to
set
actionGroup [ #sensitive:=
value ]
visible
Whether the action group is visible.
constructActionGroupVisible :: (IsActionGroup o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “visible
” property. This is rarely needed directly, but it is used by new
.
getActionGroupVisible :: (MonadIO m, IsActionGroup o) => o -> m Bool Source #
Get the value of the “visible
” property.
When overloading is enabled, this is equivalent to
get
actionGroup #visible
setActionGroupVisible :: (MonadIO m, IsActionGroup o) => o -> Bool -> m () Source #
Set the value of the “visible
” property.
When overloading is enabled, this is equivalent to
set
actionGroup [ #visible:=
value ]
Signals
connectProxy
type ActionGroupConnectProxyCallback Source #
Deprecated: (Since version 3.10)
The connectProxy signal is emitted after connecting a proxy to an action in the group. Note that the proxy may have been connected to a different action before.
This is intended for simple customizations for which a custom action class would be too clumsy, e.g. showing tooltips for menuitems in the statusbar.
UIManager
proxies the signal and provides global notification
just before any action is connected to a proxy, which is probably more
convenient to use.
Since: 2.4
type C_ActionGroupConnectProxyCallback = Ptr () -> Ptr Action -> Ptr Widget -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
afterActionGroupConnectProxy :: (IsActionGroup a, MonadIO m) => a -> ActionGroupConnectProxyCallback -> m SignalHandlerId Source #
Connect a signal handler for the connectProxy signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
actionGroup #connectProxy callback
genClosure_ActionGroupConnectProxy :: MonadIO m => ActionGroupConnectProxyCallback -> m (GClosure C_ActionGroupConnectProxyCallback) Source #
Wrap the callback into a GClosure
.
mk_ActionGroupConnectProxyCallback :: C_ActionGroupConnectProxyCallback -> IO (FunPtr C_ActionGroupConnectProxyCallback) Source #
Generate a function pointer callable from C code, from a C_ActionGroupConnectProxyCallback
.
noActionGroupConnectProxyCallback :: Maybe ActionGroupConnectProxyCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ActionGroupConnectProxyCallback
onActionGroupConnectProxy :: (IsActionGroup a, MonadIO m) => a -> ActionGroupConnectProxyCallback -> m SignalHandlerId Source #
Connect a signal handler for the connectProxy signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
actionGroup #connectProxy callback
wrap_ActionGroupConnectProxyCallback :: ActionGroupConnectProxyCallback -> C_ActionGroupConnectProxyCallback Source #
Wrap a ActionGroupConnectProxyCallback
into a C_ActionGroupConnectProxyCallback
.
disconnectProxy
type ActionGroupDisconnectProxyCallback Source #
Deprecated: (Since version 3.10)
The disconnectProxy signal is emitted after disconnecting a proxy from an action in the group.
UIManager
proxies the signal and provides global notification
just before any action is connected to a proxy, which is probably more
convenient to use.
Since: 2.4
type C_ActionGroupDisconnectProxyCallback = Ptr () -> Ptr Action -> Ptr Widget -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
afterActionGroupDisconnectProxy :: (IsActionGroup a, MonadIO m) => a -> ActionGroupDisconnectProxyCallback -> m SignalHandlerId Source #
Connect a signal handler for the disconnectProxy signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
actionGroup #disconnectProxy callback
genClosure_ActionGroupDisconnectProxy :: MonadIO m => ActionGroupDisconnectProxyCallback -> m (GClosure C_ActionGroupDisconnectProxyCallback) Source #
Wrap the callback into a GClosure
.
mk_ActionGroupDisconnectProxyCallback :: C_ActionGroupDisconnectProxyCallback -> IO (FunPtr C_ActionGroupDisconnectProxyCallback) Source #
Generate a function pointer callable from C code, from a C_ActionGroupDisconnectProxyCallback
.
noActionGroupDisconnectProxyCallback :: Maybe ActionGroupDisconnectProxyCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ActionGroupDisconnectProxyCallback
onActionGroupDisconnectProxy :: (IsActionGroup a, MonadIO m) => a -> ActionGroupDisconnectProxyCallback -> m SignalHandlerId Source #
Connect a signal handler for the disconnectProxy signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
actionGroup #disconnectProxy callback
wrap_ActionGroupDisconnectProxyCallback :: ActionGroupDisconnectProxyCallback -> C_ActionGroupDisconnectProxyCallback Source #
postActivate
type ActionGroupPostActivateCallback Source #
Deprecated: (Since version 3.10)
The postActivate signal is emitted just after the action
in the
actionGroup
is activated
This is intended for UIManager
to proxy the signal and provide global
notification just after any action is activated.
Since: 2.4
type C_ActionGroupPostActivateCallback = Ptr () -> Ptr Action -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
afterActionGroupPostActivate :: (IsActionGroup a, MonadIO m) => a -> ActionGroupPostActivateCallback -> m SignalHandlerId Source #
Connect a signal handler for the postActivate signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
actionGroup #postActivate callback
genClosure_ActionGroupPostActivate :: MonadIO m => ActionGroupPostActivateCallback -> m (GClosure C_ActionGroupPostActivateCallback) Source #
Wrap the callback into a GClosure
.
mk_ActionGroupPostActivateCallback :: C_ActionGroupPostActivateCallback -> IO (FunPtr C_ActionGroupPostActivateCallback) Source #
Generate a function pointer callable from C code, from a C_ActionGroupPostActivateCallback
.
noActionGroupPostActivateCallback :: Maybe ActionGroupPostActivateCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ActionGroupPostActivateCallback
onActionGroupPostActivate :: (IsActionGroup a, MonadIO m) => a -> ActionGroupPostActivateCallback -> m SignalHandlerId Source #
Connect a signal handler for the postActivate signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
actionGroup #postActivate callback
wrap_ActionGroupPostActivateCallback :: ActionGroupPostActivateCallback -> C_ActionGroupPostActivateCallback Source #
Wrap a ActionGroupPostActivateCallback
into a C_ActionGroupPostActivateCallback
.
preActivate
type ActionGroupPreActivateCallback Source #
Deprecated: (Since version 3.10)
The preActivate signal is emitted just before the action
in the
actionGroup
is activated
This is intended for UIManager
to proxy the signal and provide global
notification just before any action is activated.
Since: 2.4
type C_ActionGroupPreActivateCallback = Ptr () -> Ptr Action -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
afterActionGroupPreActivate :: (IsActionGroup a, MonadIO m) => a -> ActionGroupPreActivateCallback -> m SignalHandlerId Source #
Connect a signal handler for the preActivate signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
actionGroup #preActivate callback
genClosure_ActionGroupPreActivate :: MonadIO m => ActionGroupPreActivateCallback -> m (GClosure C_ActionGroupPreActivateCallback) Source #
Wrap the callback into a GClosure
.
mk_ActionGroupPreActivateCallback :: C_ActionGroupPreActivateCallback -> IO (FunPtr C_ActionGroupPreActivateCallback) Source #
Generate a function pointer callable from C code, from a C_ActionGroupPreActivateCallback
.
noActionGroupPreActivateCallback :: Maybe ActionGroupPreActivateCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ActionGroupPreActivateCallback
onActionGroupPreActivate :: (IsActionGroup a, MonadIO m) => a -> ActionGroupPreActivateCallback -> m SignalHandlerId Source #
Connect a signal handler for the preActivate signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
actionGroup #preActivate callback