StatusIcon.connectButtonPressEvent

gulong connectButtonPressEvent(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] == gdk.event_button.EventButton))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtk.status_icon.StatusIcon))) && Parameters!T.length < 3)

Connect to ButtonPressEvent signal.

The ::button-press-event signal will be emitted when a button (typically from a mouse) is pressed.

Whether this event is emitted is platform-dependent. Use the ::activate and ::popup-menu signals in preference.

Parameters

callbacksignal callback delegate or function to connect bool callback(gdk.event_button.EventButton event, gtk.status_icon.StatusIcon statusIcon) event the #GdkEventButton which triggered this signal (optional) statusIcon the instance the signal is connected to (optional) Returns true to stop other handlers from being invoked for the event. false to propagate the event further.
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID