Method

PurpleAttachmentsadd_attachment

unstable since: 3.0

Declaration [src]

gboolean
purple_attachments_add_attachment (
  PurpleAttachments* attachments,
  PurpleAttachment* attachment
)

Description [src]

Adds an attachment to the collection.

No sorting will be done, but if attachment is already in the collection it will not be added again.

Available since: 3.0

Parameters

attachment

Type: PurpleAttachment

The attachment to add.

The data is owned by the caller of the method.

Return value

Type: gboolean

True if the item was added; otherwise false.