Function

ValentNotificationadd_device_button

unstable since: 1.0

Declaration [src]

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

Description [src]

Add an action button to 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.
label

Type: const char*

The button label.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
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.