Method

PlumaWindowcreate_tab_from_uri

Declaration [src]

PlumaTab*
pluma_window_create_tab_from_uri (
  PlumaWindow* window,
  const gchar* uri,
  const PlumaEncoding* encoding,
  gint line_pos,
  gboolean create,
  gboolean jump_to
)

Description [src]

Creates a new PlumaTab loading the document specified by uri. In case jump_to is TRUE the PlumaNotebook swithes to that new PlumaTab. Whether create is TRUE, creates a new empty document if location does not refer to an existing file.

Parameters

uri

Type: const gchar*

The uri of the document.

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

Type: PlumaEncoding

A PlumaEncoding.

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

Type: gint

The line position to visualize.

create

Type: gboolean

TRUE to create a new document in case uri does exist.

jump_to

Type: gboolean

TRUE to set the new PlumaTab as active.

Return value

Type: PlumaTab

A new PlumaTab.

The data is owned by the instance.