addButtonWithTarget

open fun addButtonWithTarget(label: String, action: String, target: <Error class: unknown class>? = null)

Adds a button to @notification that activates @action when clicked.

Since

2.40

Parameters

label

label of the button

action

an action name

target

a #GVariant to use as @action's parameter, or null