Function

ValentNotificationset_device_action

unstable since: 1.0

Declaration [src]

void
valent_notification_set_device_action (
  GNotification* notification,
  ValentDevice* device,
  const char* action,
  GVariant* target
)

Description [src]

Set the default action for notification. action is wrapped in the special device action for device, which allows it to be activated from the app action scope.

Available since: 1.0

Parameters

notification

Type: GNotification

A GNotification

The data is owned by the caller of the function.
device

Type: ValentDevice

A ValentDevice

The data is owned by the caller of the function.
action

Type: const char*

The device action name.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
target

Type: GVariant

The action target.

The argument can be NULL.
The data is owned by the caller of the function.