Stargate Menu Item
Represents an item in a DBusMenu context menu.
Inheritors
Types
Link copied to clipboard
data class Action(val id: Int, val label: String, val enabled: Boolean = true, val onClick: (tokenSupplier: () -> String?) -> Unit) : StargateMenuItem
A clickable menu entry with a text label. onClick is invoked on the D-Bus thread with a tokenSupplier that lazily consumes the pending XDG activation token. Call tokenSupplier from the GTK main thread (e.g. inside GLib.idleAdd) to guarantee the token has been set by a concurrent org.kde.StatusNotifierItem.ProvideXdgActivationToken call.
Link copied to clipboard
A visual separator between groups of items.