Terminal.connectSetupContextMenu

Connect to SetupContextMenu signal.

Emitted with non-null context before terminal shows a context menu. The handler may set either a menu model using vte.terminal.Terminal.setContextMenuModel, or a menu using vte.terminal.Terminal.setContextMenu, which will then be used as context menu. If neither a menu model nor a menu are set, a context menu will not be shown.

Note that context is only valid during the signal emission; you may not retain it to call methods on it afterwards.

Also emitted with null context after the context menu has been dismissed.

class Terminal
ulong
connectSetupContextMenu
(
T
)
(,
Flag!"After" after = No.After
)
if (
isCallable!T &&
is(ReturnType!T == void)
&&
(
Parameters!T.length < 1 ||
(
ParameterStorageClassTuple!T[0] == ParameterStorageClass.none &&
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
is(Parameters!T[1] : vte.terminal.Terminal)
)
)
&&
Parameters!T.length < 3
)

Parameters

callback T

signal callback delegate or function to connect

void callback(vte.event_context.EventContext context, vte.terminal.Terminal terminal)

context the context (optional)

terminal 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