1.189 <GtkStackSidebar>

Class: <GtkStackSidebar>

It derives from <GtkWidget>.

Uses a sidebar to switch between <GtkStack> pages.

In order to use a <GtkStackSidebar>, you simply use a <GtkStack> to organize your UI flow, and add the sidebar to your sidebar area. You can use stack-sidebar:set-stack to connect the <GtkStackSidebar> to the <GtkStack>.

CSS nodes

<GtkStackSidebar> has a single CSS node with name stacksidebar and style class .sidebar.

When circumstances require it, <GtkStackSidebar> adds the .needs-attention style class to the widgets representing the stack pages.

Properties

Property: stack-sidebar:stack self

The stack.

Its value is a <GtkStack>, or #f.

Set it with (set! (stack-sidebar:stack self) value).

Procedures

Method: stack-sidebar:get-stack self ⇒ %return
Method: get-stack self ⇒ %return

Retrieves the stack.

self

Passed: a <GtkStackSidebar>.

a <GtkStackSidebar>

%return

Returned: a <GtkStack>, or #f.

the associated <GtkStack> or #f if none has been set explicitly

Procedure: stack-sidebar:new ⇒ %return

Creates a new <GtkStackSidebar>.

%return

Returned: a <GtkWidget>.

the new <GtkStackSidebar>

Method: stack-sidebar:set-stack self stack
Method: set-stack self stack

Set the <GtkStack> associated with this <GtkStackSidebar>.

The sidebar widget will automatically update according to the order and items within the given <GtkStack>.

self

Passed: a <GtkStackSidebar>.

a <GtkStackSidebar>

stack

Passed: a <GtkStack>.

a <GtkStack>