create_tab_from_location


Description:

public unowned Tab create_tab_from_location (File location, SourceEncoding? encoding, int line_pos, int column_pos, bool create, bool jump_to)

Creates a new Tab loading the document specified by uri.

In case jump_to is true the Notebook swithes to that new Tab. Whether create is true, creates a new empty document if location does not refer to an existing file

Parameters:

this

a Window

location

the location of the document

encoding

a SourceEncoding, or null

line_pos

the line position to visualize

column_pos

the column position to visualize

create

true to create a new document in case uri does exist

jump_to

true to set the new Tab as active

Returns:

a new Tab




2022 vala-language.org