Top | ![]() |
![]() |
![]() |
![]() |
PlumaTab * | pluma_window_create_tab () |
PlumaTab * | pluma_window_create_tab_from_uri () |
void | pluma_window_close_tab () |
void | pluma_window_close_all_tabs () |
void | pluma_window_close_tabs () |
PlumaTab * | pluma_window_get_active_tab () |
void | pluma_window_set_active_tab () |
PlumaView * | pluma_window_get_active_view () |
PlumaDocument * | pluma_window_get_active_document () |
GList * | pluma_window_get_documents () |
GList * | pluma_window_get_unsaved_documents () |
GList * | pluma_window_get_views () |
GtkWindowGroup * | pluma_window_get_group () |
PlumaPanel * | pluma_window_get_side_panel () |
PlumaPanel * | pluma_window_get_bottom_panel () |
GtkWidget * | pluma_window_get_statusbar () |
GtkUIManager * | pluma_window_get_ui_manager () |
PlumaWindowState | pluma_window_get_state () |
PlumaTab * | pluma_window_get_tab_from_location () |
PlumaMessageBus * | pluma_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 ╰── PlumaWindow
PlumaTab * pluma_window_create_tab (PlumaWindow *window
,gboolean jump_to
);
Creates a new PlumaTab and adds the new tab to the PlumaNotebook.
In case jump_to
is TRUE
the PlumaNotebook switches to that new PlumaTab.
PlumaTab * pluma_window_create_tab_from_uri (PlumaWindow *window
,const gchar *uri
,const PlumaEncoding *encoding
,gint line_pos
,gboolean create
,gboolean jump_to
);
Creates a new PlumaTab loading the document specified by uri
.
In case jump_to
is TRUE
the PlumaNotebook swithes to that new PlumaTab.
Whether create
is TRUE
, creates a new empty document if location does
not refer to an existing file
window |
||
uri |
the uri of the document |
|
encoding |
||
line_pos |
the line position to visualize |
|
create |
|
|
jump_to |
|
void pluma_window_close_tab (PlumaWindow *window
,PlumaTab *tab
);
Closes the tab
.
void
pluma_window_close_all_tabs (PlumaWindow *window
);
Closes all opened tabs.
void pluma_window_close_tabs (PlumaWindow *window
,const GList *tabs
);
Closes all tabs specified by tabs
.
PlumaTab *
pluma_window_get_active_tab (PlumaWindow *window
);
Gets the active PlumaTab in the window
.
void pluma_window_set_active_tab (PlumaWindow *window
,PlumaTab *tab
);
Switches to the tab that matches with tab
.
PlumaView *
pluma_window_get_active_view (PlumaWindow *window
);
Gets the active PlumaView.
PlumaDocument *
pluma_window_get_active_document (PlumaWindow *window
);
Gets the active PlumaDocument.
GList *
pluma_window_get_documents (PlumaWindow *window
);
Gets a newly allocated list with all the documents in the window. This list must be freed.
a newly allocated list with all the documents in the window.
[element-type Pluma.Document][transfer container]
GList *
pluma_window_get_unsaved_documents (PlumaWindow *window
);
Gets the list of documents that need to be saved before closing the window.
a list of PlumaDocument that need to be saved before closing the window.
[element-type Pluma.Document][transfer container]
GList *
pluma_window_get_views (PlumaWindow *window
);
Gets a list with all the views in the window. This list must be freed.
a newly allocated list with all the views in the window.
[element-type Pluma.View][transfer container]
GtkWindowGroup *
pluma_window_get_group (PlumaWindow *window
);
Gets the GtkWindowGroup in which window
resides.
PlumaPanel *
pluma_window_get_side_panel (PlumaWindow *window
);
Gets the side PlumaPanel of the window
.
PlumaPanel *
pluma_window_get_bottom_panel (PlumaWindow *window
);
Gets the bottom PlumaPanel of the window
.
GtkWidget *
pluma_window_get_statusbar (PlumaWindow *window
);
Gets the PlumaStatusbar of the window
.
GtkUIManager *
pluma_window_get_ui_manager (PlumaWindow *window
);
Gets the GtkUIManager associated with the window
.
PlumaWindowState
pluma_window_get_state (PlumaWindow *window
);
Retrieves the state of the window
.
PlumaTab * pluma_window_get_tab_from_location (PlumaWindow *window
,GFile *location
);
Gets the PlumaTab that matches with the given location
.
PlumaMessageBus *
pluma_window_get_message_bus (PlumaWindow *window
);
Gets the PlumaMessageBus associated with window
. The returned reference
is owned by the window and should not be unreffed.
“active-tab-changed”
signalvoid user_function (PlumaWindow *plumawindow, PlumaTab *arg1, gpointer user_data)
Flags: Run First
“active-tab-state-changed”
signalvoid user_function (PlumaWindow *plumawindow, gpointer user_data)
Flags: Run First
“tab-added”
signalvoid user_function (PlumaWindow *plumawindow, PlumaTab *arg1, gpointer user_data)
Flags: Run First
“tab-removed”
signalvoid user_function (PlumaWindow *plumawindow, PlumaTab *arg1, gpointer user_data)
Flags: Run First
“tabs-reordered”
signalvoid user_function (PlumaWindow *plumawindow, gpointer user_data)
Flags: Run First