Notification.addButtonWithTarget

void addButtonWithTarget(string label, string action, glib.variant.Variant target = null)

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.

Parameters

labellabel of the button
actionan action name
targeta #GVariant to use as action's parameter, or null