Constructor

TalkatuAttachmentPreviewnew

Declaration [src]

GtkWidget*
talkatu_attachment_preview_new (
  TalkatuAttachment* attachment
)

Description [src]

Creates a new TalkatuAttachmentPreview for the given attachment.

Parameters

attachment

Type: TalkatuAttachment

The TalkatuAttachment we’re previewing.

The data is owned by the caller of the function.

Return value

Type: GtkWidget

The new TalkatuAttachmentPreview.

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