Gtk.StatusIcon::popup-menu

function callback(status_icon, button:Number, activate_time:Number, ):void;

Gets emitted when the user brings up the context menu of the status icon. Whether status icons can have context menus and how these are activated is platform-dependent.

The button and activate_time parameters should be passed as the last to arguments to Gtk.Menu.prototype.popup.

Unlike most G_SIGNAL_ACTION signals, this signal is meant to be used by applications and should be wrapped by language bindings.

Since 2.10

status_icon

instance of Gtk.StatusIcon that is emitting the signal

button

the button that was pressed, or 0 if the signal is not emitted in response to a button press event

activate_time

the timestamp of the event that triggered the signal emission