Top | ![]() |
![]() |
![]() |
![]() |
XedTab * | xed_window_create_tab () |
XedTab * | xed_window_create_tab_from_location () |
void | xed_window_close_tab () |
void | xed_window_close_all_tabs () |
void | xed_window_close_tabs () |
XedTab * | xed_window_get_active_tab () |
void | xed_window_set_active_tab () |
XedView * | xed_window_get_active_view () |
XedDocument * | xed_window_get_active_document () |
GList * | xed_window_get_documents () |
GList * | xed_window_get_unsaved_documents () |
GList * | xed_window_get_views () |
GtkWindowGroup * | xed_window_get_group () |
XedPanel * | xed_window_get_side_panel () |
XedPanel * | xed_window_get_bottom_panel () |
GtkWidget * | xed_window_get_statusbar () |
GtkUIManager * | xed_window_get_ui_manager () |
XedWindowState | xed_window_get_state () |
XedTab * | xed_window_get_tab_from_location () |
XedMessageBus * | xed_window_get_message_bus () |
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 |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkWindow ╰── GtkApplicationWindow ╰── XedWindow
XedWindow implements AtkImplementorIface, GtkBuildable, GActionGroup and GActionMap.
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.
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
window |
||
location |
the location of the document |
|
encoding |
[allow-none] | |
line_pos |
the line position to visualize |
|
create |
|
|
jump_to |
|
void xed_window_close_tab (XedWindow *window
,XedTab *tab
);
Closes the tab
.
void
xed_window_close_all_tabs (XedWindow *window
);
Closes all opened tabs.
void xed_window_close_tabs (XedWindow *window
,const GList *tabs
);
Closes all tabs specified by tabs
.
XedTab *
xed_window_get_active_tab (XedWindow *window
);
Gets the active XedTab in the window
.
void xed_window_set_active_tab (XedWindow *window
,XedTab *tab
);
Switches to the tab that matches with tab
.
XedView *
xed_window_get_active_view (XedWindow *window
);
Gets the active XedView.
XedDocument *
xed_window_get_active_document (XedWindow *window
);
Gets the active XedDocument.
GList *
xed_window_get_documents (XedWindow *window
);
Gets a newly allocated list with all the documents in the window. This list must be freed.
GList *
xed_window_get_unsaved_documents (XedWindow *window
);
Gets the list of documents that need to be saved before closing the window.
a list of XedDocument that need to be saved before closing the window.
[element-type Xed.Document][transfer container]
GList *
xed_window_get_views (XedWindow *window
);
Gets a list with all the views in the window. This list must be freed.
GtkWindowGroup *
xed_window_get_group (XedWindow *window
);
Gets the GtkWindowGroup in which window
resides.
XedPanel *
xed_window_get_side_panel (XedWindow *window
);
Gets the side XedPanel of the window
.
XedPanel *
xed_window_get_bottom_panel (XedWindow *window
);
Gets the bottom XedPanel of the window
.
GtkWidget *
xed_window_get_statusbar (XedWindow *window
);
Gets the XedStatusbar of the window
.
GtkUIManager *
xed_window_get_ui_manager (XedWindow *window
);
Gets the GtkUIManager associated with the window
.
XedWindowState
xed_window_get_state (XedWindow *window
);
Retrieves the state of the window
.
XedTab * xed_window_get_tab_from_location (XedWindow *window
,GFile *location
);
Gets the XedTab that matches with the given location
.
XedMessageBus *
xed_window_get_message_bus (XedWindow *window
);
Gets the XedMessageBus associated with window
. The returned reference
is owned by the window and should not be unreffed.
“active-tab-changed”
signalvoid user_function (XedWindow *xedwindow, XedTab *arg1, gpointer user_data)
Flags: Run First
“active-tab-state-changed”
signalvoid user_function (XedWindow *xedwindow, gpointer user_data)
Flags: Run First
“tab-added”
signalvoid user_function (XedWindow *xedwindow, XedTab *arg1, gpointer user_data)
Flags: Run First
“tab-removed”
signalvoid user_function (XedWindow *xedwindow, XedTab *arg1, gpointer user_data)
Flags: Run First
“tabs-reordered”
signalvoid user_function (XedWindow *xedwindow, gpointer user_data)
Flags: Run First