Widget.connectPopupMenu
gulong connectPopupMenu(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] : gtk.widget.Widget)))
&& Parameters!T.length < 2)Connect to PopupMenu signal.
This signal gets emitted whenever a widget should pop up a context menu. This usually happens through the standard key binding mechanism; by pressing a certain key while a widget is focused, the user can cause the widget to pop up a menu. For example, the #GtkEntry widget creates a menu with clipboard commands. See the [Popup Menu Migration Checklist][checklist-popup-menu] for an example of how to use this signal.
Parameters
callback | signal callback delegate or function to connect bool callback(gtk.widget.Widget widget) widget the instance the signal is connected to (optional) Returns true if a menu was activated |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID