1.57 <AdwStatusPage>

Class: <AdwStatusPage>

It derives from <GtkWidget>.

A page used for empty/error states and similar use-cases.

The <AdwStatusPage> widget can have an icon, a title, a description and a custom widget which is displayed below them.

CSS nodes

<AdwStatusPage> has a main CSS node with name statuspage.

When setting an SpinnerPaintable as StatusPage:paintable, the main nodes gains the .spinner style class for a more compact appearance.

Style classes

<AdwStatusPage> can use the ‘.compact‘ style class for when it needs to fit into a small space such a sidebar or a popover, similar to when using a spinner as the paintable.

Properties

Property: status-page:child self

The child widget.

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

Set it with (set! (status-page:child self) value).

Property: status-page:description self

The description markup to be displayed below the title.

Its value is a string, or #f.

Set it with (set! (status-page:description self) value).

Property: status-page:icon-name self

The name of the icon to be used.

Changing this will set StatusPage:paintable to NULL.

Its value is a string, or #f.

Set it with (set! (status-page:icon-name self) value).

Property: status-page:paintable self

The paintable to be used.

Changing this will set StatusPage:icon-name to NULL.

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

Set it with (set! (status-page:paintable self) value).

Property: status-page:title self

The title to be displayed below the icon.

It is not parsed as Pango markup.

Its value is a string, or #f.

Set it with (set! (status-page:title self) value).

Procedures

Method: status-page:get-child self ⇒ %return
Method: get-child self ⇒ %return

Gets the child widget of self.

self

Passed: a <AdwStatusPage>.

a status page

%return

Returned: a <GtkWidget>, or #f.

the child widget of self

Method: status-page:get-description self ⇒ %return
Method: get-description self ⇒ %return

Gets the description markup for self.

self

Passed: a <AdwStatusPage>.

a status page

%return

Returned: a string, or #f.

the description

Method: status-page:get-icon-name self ⇒ %return
Method: get-icon-name self ⇒ %return

Gets the icon name for self.

self

Passed: a <AdwStatusPage>.

a status page

%return

Returned: a string, or #f.

the icon name

Method: status-page:get-paintable self ⇒ %return
Method: get-paintable self ⇒ %return

Gets the paintable for self.

self

Passed: a <AdwStatusPage>.

a status page

%return

Returned: a <GdkPaintable>, or #f.

the paintable

Method: status-page:get-title self ⇒ %return
Method: get-title self ⇒ %return

Gets the title for self.

self

Passed: a <AdwStatusPage>.

a status page

%return

Returned: a string.

the title

Procedure: status-page:new ⇒ %return

Creates a new <AdwStatusPage>.

%return

Returned: a <GtkWidget>.

the newly created <AdwStatusPage>

Method: status-page:set-child self [child]
Method: set-child self [child]

Sets the child widget of self.

self

Passed: a <AdwStatusPage>.

a status page

child

Passed, or left out: a <GtkWidget>, or #f.

the child widget

Method: status-page:set-description self [description]
Method: set-description self [description]

Sets the description markup for self.

The description is displayed below the title. It is parsed as Pango markup.

self

Passed: a <AdwStatusPage>.

a status page

description

Passed, or left out: a string, or #f.

the description

Method: status-page:set-icon-name self [icon-name]
Method: set-icon-name self [icon-name]

Sets the icon name for self.

Changing this will set StatusPage:paintable to NULL.

self

Passed: a <AdwStatusPage>.

a status page

icon-name

Passed, or left out: a string, or #f.

the icon name

Method: status-page:set-paintable self [paintable]
Method: set-paintable self [paintable]

Sets the paintable for self.

Changing this will set StatusPage:icon-name to NULL.

self

Passed: a <AdwStatusPage>.

a status page

paintable

Passed, or left out: a <GdkPaintable>, or #f.

the paintable

Method: status-page:set-title self title
Method: set-title self title

Sets the title for self.

The title is displayed below the icon. It is not parsed as Pango markup.

self

Passed: a <AdwStatusPage>.

a status page

title

Passed: a string.

the title