StatusIcon.addOnButtonPress

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.

  1. gulong addOnButtonPress(bool delegate(GdkEventButton*, StatusIcon) dlg, ConnectFlags connectFlags)
  2. gulong addOnButtonPress(bool delegate(Event, StatusIcon) dlg, ConnectFlags connectFlags)
    class StatusIcon
    gulong
    addOnButtonPress
    (
    bool delegate dlg
    ,
    ConnectFlags connectFlags = cast(ConnectFlags)0
    )

Return Value

Type: gulong

TRUE to stop other handlers from being invoked for the event. FALSE to propagate the event further.

Meta

Since

2.14