Method

PlumaDocumentload

Declaration [src]

void
pluma_document_load (
  PlumaDocument* doc,
  const gchar* uri,
  const PlumaEncoding* encoding,
  gint line_pos,
  gboolean create
)

Description [src]

Load a document. This results in the “load” signal to be emitted.

Parameters

uri

Type: const gchar*

The uri where to load the document from.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
encoding

Type: PlumaEncoding

The PlumaEncoding to encode the document.

The data is owned by the caller of the method.
line_pos

Type: gint

The line to show.

create

Type: gboolean

Whether the document should be created if it doesn’t exist.