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-
Type:
const char*The action ID.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. label-
Type:
const char*The human-readable action label.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. callback-
Type:
NotifyActionCallbackThe action’s callback function.
user_data-
Type:
gpointerOptional custom data to pass to
callback.The argument can be NULL.The data is owned by the caller of the function. free_func-
Type:
GDestroyNotifyAn optional function to free
user_datawhen the notification is destroyed.