Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | ide_editor_sidebar_new () |
const gchar * | ide_editor_sidebar_get_section_id () |
void | ide_editor_sidebar_set_section_id () |
void | ide_editor_sidebar_add_section () |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── DzlBin ╰── DzlDockRevealer ╰── DzlDockBinEdge ╰── IdeLayoutPane ╰── IdeEditorSidebar
IdeEditorSidebar implements AtkImplementorIface, GtkBuildable and DzlDockItem.
The IdeEditorSidebar is the widget displayed on the left of the IdeEditorPerspective. It contains an open document list, and then the various sections that have been added to the sidebar.
Use ide_editor_sidebar_add_section()
to add a section to the sidebar.
GtkWidget *
ide_editor_sidebar_new (void
);
Creates a new IdeEditorSidebar instance.
Since: 3.26
const gchar *
ide_editor_sidebar_get_section_id (IdeEditorSidebar *self
);
Gets the id of the current section.
Since: 3.26
void ide_editor_sidebar_set_section_id (IdeEditorSidebar *self
,const gchar *section_id
);
Changes the current section to section_id
.
Since: 3.26
void ide_editor_sidebar_add_section (IdeEditorSidebar *self
,const gchar *id
,const gchar *title
,const gchar *icon_name
,const gchar *menu_id
,const gchar *menu_icon_name
,GtkWidget *section
,gint priority
);
Adds a new section to the IdeEditorSidebar. icon_name
will be used to
display an icon for the section. title
should contain the title to display
above the section.
If you want to be able to switch to the section manually, you should set id
so that ide_editor_sidebar_set_section_id()
will allow you to use id.
To remove your section, call gtk_widget_destroy()
on section
.
self |
||
id |
an optional id for the section. |
[nullable] |
title |
the title of the section |
|
icon_name |
the icon name for the section's icon |
|
menu_id |
an optional menu-id to display. |
[nullable] |
menu_icon_name |
an optional icon-name for displaying the menu. |
[nullable] |
section |
the widget to display in the sidebar |
Since: 3.26