Method

NotifyNotificationadd_action

Declaration [src]

void
notify_notification_add_action (
  NotifyNotification* notification,
  const char* action,
  const char* label,
  NotifyActionCallback callback,
  gpointer user_data,
  GFreeFunc free_func
)

Description [src]

Adds an action to a notification.

When the action is invoked, the specified callback function will be called, along with the value passed to user_data.

Parameters

action const char*
 

The action ID.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
label const char*
 

The human-readable action label.

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

The action’s callback function.

user_data gpointer
 

Optional custom data to pass to callback.

free_func GFreeFunc
 

An optional function to free user_data when the notification is destroyed.