Notification.setDefaultActionAndTargetValue

Sets the default action of @notification to @action. This action is activated when the notification is clicked on. It must be an application-wide action (start with "app.").

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

When no default action is set, the application that the notification was sent on is activated.

class Notification
void
setDefaultActionAndTargetValue

Parameters

action string

an action name

target Variant

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

Meta

Since

2.40