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:
PlumaEncodingA
PlumaEncoding.The data is owned by the caller of the method. line_pos-
Type:
gintThe line position to visualize.
create-
Type:
gbooleanTRUEto create a new document in caseuridoes exist. jump_to-
Type:
gbooleanTRUEto set the newPlumaTabas active.
Return value
Type: PlumaTab
A new PlumaTab.
| The data is owned by the instance. |