Top |
GFlags ╰── GeditWindowState GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkWindow ╰── GtkApplicationWindow ╰── GeditWindow
GeditWindow implements AtkImplementorIface, GtkBuildable, GActionGroup and GActionMap.
GeditWindow is a main window, a subclass of GtkApplicationWindow.
It contains GeditTab's.
GeditTab * gedit_window_create_tab (GeditWindow *window
,gboolean jump_to
);
Creates a new GeditTab and adds it to the GtkNotebook.
void gedit_window_close_tab (GeditWindow *window
,GeditTab *tab
);
Closes the tab
.
void
gedit_window_close_all_tabs (GeditWindow *window
);
Closes all tabs of window
.
void gedit_window_close_tabs (GeditWindow *window
,const GList *tabs
);
Closes all tabs specified in tabs
.
void gedit_window_set_active_tab (GeditWindow *window
,GeditTab *tab
);
Switches to tab
.
GeditDocument *
gedit_window_get_active_document (GeditWindow *window
);
GeditTab * gedit_window_get_tab_from_location (GeditWindow *window
,GFile *location
);
GList *
gedit_window_get_views (GeditWindow *window
);
a newly allocated
list with all the GeditView's currently part of window
.
[element-type GeditView][transfer container]
GList *
gedit_window_get_documents (GeditWindow *window
);
a newly allocated
list with all the GeditDocument's currently part of window
.
[element-type GeditDocument][transfer container]
GList *
gedit_window_get_unsaved_documents (GeditWindow *window
);
a newly allocated
list of GeditDocument's part of window
that currently have unsaved changes.
[element-type GeditDocument][transfer container]
TeplPanel *
gedit_window_get_side_panel (GeditWindow *window
);
Since: 46
TeplPanel *
gedit_window_get_bottom_panel (GeditWindow *window
);
Since: 48
GeditMessageBus *
gedit_window_get_message_bus (GeditWindow *window
);
the GeditMessageBus associated with window
. The
returned reference is owned by the window and should not be unreffed.
[transfer none]
Flags for the state of a GeditWindow. The enumerators are flags and can be combined. GeditWindow combines and summarizes the state of its GeditTab's into one GeditWindowState value. See GeditTabState for the more precise states.
“state”
property“state” GeditWindowState
The state of the GeditWindow.
Owner: GeditWindow
Flags: Read
“active-tab-changed”
signalvoid user_function (GeditWindow *window, gpointer user_data)
The ::active-tab-changed signal is emitted when the active GeditTab
of window
changes (including when it becomes NULL
). You can get its
value with gedit_window_get_active_tab()
.
window |
the GeditWindow emitting the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First
Since: 47
“tab-added”
signalvoid user_function (GeditWindow *window, GeditTab *tab, gpointer user_data)
The ::tab-added signal is emitted right after a GeditTab is added to
window
.
window |
the GeditWindow emitting the signal. |
|
tab |
the added GeditTab. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First
“tab-removed”
signalvoid user_function (GeditWindow *window, GeditTab *tab, gpointer user_data)
The ::tab-removed signal is emitted right after a GeditTab is
removed from window
.
During the signal emission, the tab
's GeditView and GeditDocument
objects are absent from the lists returned by
gedit_window_get_views()
and gedit_window_get_documents()
(tab
is
not part of window
).
During the signal emission, tab
is still a valid object. As such you
can call functions like gedit_tab_get_view()
and
gedit_tab_get_document()
, for example to disconnect signal handlers.
window |
the GeditWindow emitting the signal. |
|
tab |
the removed GeditTab. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First