XedWindow

XedWindow

Functions

Properties

Signals

void active-tab-changed Run First
void active-tab-state-changed Run First
void tab-added Run First
void tab-removed Run First
void tabs-reordered Run First

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBin
                    ╰── GtkWindow
                        ╰── GtkApplicationWindow
                            ╰── XedWindow

Description

Functions

xed_window_create_tab ()

XedTab *
xed_window_create_tab (XedWindow *window,
                       gboolean jump_to);

Creates a new XedTab and adds the new tab to the XedNotebook. In case jump_to is TRUE the XedNotebook switches to that new XedTab.

Parameters

window

a XedWindow

 

jump_to

TRUE to set the new XedTab as active

 

Returns

a new XedTab.

[transfer none]


xed_window_create_tab_from_location ()

XedTab *
xed_window_create_tab_from_location (XedWindow *window,
                                     GFile *location,
                                     const GtkSourceEncoding *encoding,
                                     gint line_pos,
                                     gboolean create,
                                     gboolean jump_to);

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

Parameters

window

a XedWindow

 

location

the location of the document

 

encoding

a GtkSourceEncoding.

[allow-none]

line_pos

the line position to visualize

 

create

TRUE to create a new document in case uri does exist

 

jump_to

TRUE to set the new XedTab as active

 

Returns

a new XedTab.

[transfer none]


xed_window_create_tab_from_stream ()

XedTab *
xed_window_create_tab_from_stream (XedWindow *window,
                                   GInputStream *stream,
                                   const GtkSourceEncoding *encoding,
                                   gint line_pos,
                                   gboolean jump_to);

Parameters

window

a XedWindow

 

stream

the GInputStream

 

encoding

the encoding to use in the stream

 

line_pos

the position

 

jump_to

whether to jump to the new tab

 

Returns

the active XedTab in the window .

[transfer none]


xed_window_close_tab ()

void
xed_window_close_tab (XedWindow *window,
                      XedTab *tab);

Closes the tab .

Parameters

window

a XedWindow

 

tab

the XedTab to close

 

xed_window_close_all_tabs ()

void
xed_window_close_all_tabs (XedWindow *window);

Closes all opened tabs.

Parameters

window

a XedWindow

 

xed_window_close_tabs ()

void
xed_window_close_tabs (XedWindow *window,
                       const GList *tabs);

Closes all tabs specified by tabs .

Parameters

window

a XedWindow

 

tabs

a list of