MenuToolButton.connectShowMenu
gulong connectShowMenu(T)(T callback, 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] : gtk.menu_tool_button.MenuToolButton)))
&& Parameters!T.length < 2)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.
Parameters
callback | 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 | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID