MenuToolButton.connectShowMenu

Connect to ShowMenu signal.

The ::show-menu signal is emitted before the menu is shown.

It can be used to populate the menu on demand, using gtk.menu_tool_button.MenuToolButton.setMenu.

Note that even if you populate the menu dynamically in this way, you must set an empty menu on the #GtkMenuToolButton beforehand, since the arrow is made insensitive if the menu is not set.

class MenuToolButton
gulong
connectShowMenu
(
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
)

Parameters

callback T

signal callback delegate or function to connect

void callback(gtk.menu_tool_button.MenuToolButton menuToolButton)

menuToolButton 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: gulong

Signal ID