Notification.addButton

void addButton(string label, string detailedAction)

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 [gio.action.Action.parseDetailedName] for a description of the format for detailed_action.

Parameters

labellabel of the button
detailedActiona detailed action name