Constructor

PurpleNotificationnew

since: 3.0

Declaration [src]

PurpleNotification*
purple_notification_new (
  PurpleNotificationType type,
  PurpleAccount* account,
  gpointer data,
  GDestroyNotify data_destroy_func
)

Description [src]

Creates a new notification with the given properties. account is optional.

Once the notification is prepared, it should be added to a PurpleNotificationManager to be presented to the user.

Available since: 3.0

Parameters

type

Type: PurpleNotificationType

The PurpleNotificationType of the notification.

account

Type: PurpleAccount

The PurpleAccount that created the notification if applicable.

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

Type: gpointer

The data for the notification.

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

Type: GDestroyNotify

A GDestroyNotify to call to free data.

Return value

Type: PurpleNotification

The new notification.

The caller of the function takes ownership of the data, and is responsible for freeing it.