Notification.addButtonWithTargetValue

Adds a button to @notification that activates @action when clicked. @action must be an application-wide action (it must start with "app.").

If @target is non-%NULL, @action will be activated with @target as its parameter.

class Notification
void
addButtonWithTargetValue
(
string label
,
string action
,)

Parameters

label string

label of the button

action string

an action name

target Variant

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

Meta

Since

2.40