ActionGroupT.connectActionStateChanged

Connect to ActionStateChanged signal.

Signals that the state of the named action has changed.

template ActionGroupT()
ulong
connectActionStateChanged
(
T
)
(
string detail = null
,,
Flag!"After" after = No.After
)
if (
isCallable!T &&
is(ReturnType!T == void)
&&
(
Parameters!T.length < 1 ||
(
ParameterStorageClassTuple!T[0] == ParameterStorageClass.none &&
is(Parameters!T[0] == string)
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
is(Parameters!T[1] == glib.variant.VariantG)
)
)
&&
(
Parameters!T.length < 3 ||
(
ParameterStorageClassTuple!T[2] == ParameterStorageClass.none &&
is(Parameters!T[2] : gio.action_group.ActionGroup)
)
)
&&
Parameters!T.length < 4
)

Parameters

detail string

Signal detail or null (default)

callback T

signal callback delegate or function to connect

void callback(string actionName, glib.variant.VariantG value, gio.action_group.ActionGroup actionGroup)

actionName the name of the action in action_group (optional)

value the new value of the state (optional)

actionGroup the instance the signal is connected to (optional)

after Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: ulong

Signal ID