Toolbar.connectPopupContextMenu
gulong connectPopupContextMenu(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == bool)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == int)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == int)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] == int)))
&& (Parameters!T.length < 4 || (ParameterStorageClassTuple!T[3] == ParameterStorageClass.none && is(Parameters!T[3] : gtk.toolbar.Toolbar)))
&& Parameters!T.length < 5)Connect to PopupContextMenu signal.
Emitted when the user right-clicks the toolbar or uses the keybinding to display a popup menu.
Application developers should handle this signal if they want to display a context menu on the toolbar. The context-menu should appear at the coordinates given by x and y. The mouse button number is given by the button parameter. If the menu was popped up using the keybaord, button is -1.
Parameters
callback | signal callback delegate or function to connect bool callback(int x, int y, int button, gtk.toolbar.Toolbar toolbar) x the x coordinate of the point where the menu should appear (optional) y the y coordinate of the point where the menu should appear (optional) button the mouse button the user pressed, or -1 (optional) toolbar the instance the signal is connected to (optional) Returns return true if the signal was handled, false if not |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID