Notification.addButton

Adds a button to @notification that activates the action in @detailed_action when clicked. That action must be an application-wide action (starting with "app."). If @detailed_action contains a target, the action will be activated with that target as its parameter.

See g_action_parse_detailed_name() for a description of the format for @detailed_action.

class Notification
void
addButton
(
string label
,)

Parameters

label string

label of the button

detailedAction string

a detailed action name

Meta

Since

2.40