Top | ![]() |
![]() |
![]() |
![]() |
GeditTab * | gedit_window_create_tab () |
GeditTab * | gedit_window_create_tab_from_location () |
GeditTab * | gedit_window_create_tab_from_stream () |
void | gedit_window_close_tab () |
void | gedit_window_close_all_tabs () |
void | gedit_window_close_tabs () |
GeditTab * | gedit_window_get_active_tab () |
void | gedit_window_set_active_tab () |
GeditView * | gedit_window_get_active_view () |
GeditDocument * | gedit_window_get_active_document () |
GList * | gedit_window_get_documents () |
GList * | gedit_window_get_unsaved_documents () |
GList * | gedit_window_get_views () |
GtkWindowGroup * | gedit_window_get_group () |
GtkWidget * | gedit_window_get_side_panel () |
GtkWidget * | gedit_window_get_bottom_panel () |
GtkWidget * | gedit_window_get_statusbar () |
GeditWindowState | gedit_window_get_state () |
GeditTab * | gedit_window_get_tab_from_location () |
GeditMessageBus * | gedit_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 |
GFlags ╰── GeditWindowState GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkWindow ╰── GtkApplicationWindow ╰── GeditWindow
GeditWindow implements AtkImplementorIface, GtkBuildable, GActionGroup and GActionMap.
GeditTab * gedit_window_create_tab (GeditWindow *window
,gboolean jump_to
);
Creates a new GeditTab and adds the new tab to the GtkNotebook.
In case jump_to
is TRUE
the GtkNotebook switches to that new GeditTab.
GeditTab * gedit_window_create_tab_from_location (GeditWindow *window
,GFile *location
,const GtkSourceEncoding *encoding
,gint line_pos
,gint column_pos
,gboolean create
,gboolean jump_to
);
Creates a new GeditTab loading the document specified by uri
.
In case jump_to
is TRUE
the GtkNotebook swithes to that new GeditTab.
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 |
a GtkSourceEncoding, or |
[allow-none] |
line_pos |
the line position to visualize |
|
column_pos |
the column position to visualize |
|
create |
|
|
jump_to |
|
GeditTab * gedit_window_create_tab_from_stream (GeditWindow *window
,GInputStream *stream
,const GtkSourceEncoding *encoding
,gint line_pos
,gint column_pos
,gboolean jump_to
);
window |
||
stream |
a GInputStream |
|
encoding |
a GtkSourceEncoding, or |
[allow-none] |
line_pos |
the line position to visualize |
|
column_pos |
the column position to visualize |
|
jump_to |
|
void gedit_window_close_tab (GeditWindow *window
,GeditTab *tab
);
Closes the tab
.
void
gedit_window_close_all_tabs (GeditWindow *window
);
Closes all opened tabs.
void gedit_window_close_tabs (GeditWindow *window
,const GList *tabs
);
Closes all tabs specified by tabs
.
GeditTab *
gedit_window_get_active_tab (GeditWindow *window
);
Gets the active GeditTab in the window
.
void gedit_window_set_active_tab (GeditWindow *window
,GeditTab *tab
);
Switches to the tab that matches with tab
.
GeditView *
gedit_window_get_active_view (GeditWindow *window
);
Gets the active GeditView.
GeditDocument *
gedit_window_get_active_document (GeditWindow *window
);
Gets the active GeditDocument.
GList *
gedit_window_get_documents (GeditWindow *window
);
Gets a newly allocated list with all the documents in the window. This list must be freed.
GList *
gedit_window_get_unsaved_documents (GeditWindow *window
);
Gets the list of documents that need to be saved before closing the window.
a list of GeditDocument that need to be saved before closing the window.
[element-type Gedit.Document][transfer container]
GList *
gedit_window_get_views (GeditWindow *window
);
Gets a list with all the views in the window. This list must be freed.
GtkWindowGroup *
gedit_window_get_group (GeditWindow *window
);
Gets the GtkWindowGroup in which window
resides.
GtkWidget *
gedit_window_get_side_panel (GeditWindow *window
);
Gets the side panel of the window
.
GtkWidget *
gedit_window_get_bottom_panel (GeditWindow *window
);
Gets the bottom panel of the window
.
GtkWidget *
gedit_window_get_statusbar (GeditWindow *window
);
Gets the GeditStatusbar of the window
.
GeditWindowState
gedit_window_get_state (GeditWindow *window
);
Retrieves the state of the window
.
GeditTab * gedit_window_get_tab_from_location (GeditWindow *window
,GFile *location
);
Gets the GeditTab that matches with the given location
.
GeditMessageBus *
gedit_window_get_message_bus (GeditWindow *window
);
Gets the GeditMessageBus associated with window
. The returned reference
is owned by the window and should not be unreffed.
“active-tab-changed”
signalvoid user_function (GeditWindow *geditwindow, GeditTab *arg1, gpointer user_data)
Flags: Run First
“active-tab-state-changed”
signalvoid user_function (GeditWindow *geditwindow, gpointer user_data)
Flags: Run First
“tab-added”
signalvoid user_function (GeditWindow *geditwindow, GeditTab *arg1, gpointer user_data)
Flags: Run First
“tab-removed”
signalvoid user_function (GeditWindow *geditwindow, GeditTab *arg1, gpointer user_data)
Flags: Run First
“tabs-reordered”
signalvoid user_function (GeditWindow *geditwindow, gpointer user_data)
Flags: Run First