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)
Yes.After to execute callback after default handler, No.After to execute before (default)
Signal ID
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.