1.42 <AdwPreferencesPage>

Class: <AdwPreferencesPage>

It derives from <GtkWidget>.

A page from PreferencesDialog.

The <AdwPreferencesPage> widget gathers preferences groups into a single page of a preferences window.

CSS nodes

<AdwPreferencesPage> has a single CSS node with name preferencespage.

Accessibility

<AdwPreferencesPage> uses the Gtk.AccessibleRole.group role.

Fields

parent-instance

Properties

Property: preferences-page:banner self

A Banner displayed at the top of the page.

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

Set it with (set! (preferences-page:banner self) value).

Property: preferences-page:description self

The description to be displayed at the top of the page.

Its value is a string, or #f.

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

Property: preferences-page:description-centered self

Whether the description should be centered.

Its value is a boolean.

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

Property: preferences-page:icon-name self

The icon name for this page.

Its value is a string, or #f.

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

Property: preferences-page:name self

The name of this page.

Its value is a string, or #f.

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

Property: preferences-page:title self

The title for this page.

Its value is a string, or #f.

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

Property: preferences-page:use-underline self

Whether an embedded underline in the title indicates a mnemonic.

Its value is a boolean.

Set it with (set! (preferences-page:use-underline self) value).

Procedures

Method: preferences-page:add self group
Method: add self group

Adds a preferences group to self.

self

Passed: a <AdwPreferencesPage>.

a preferences page

group

Passed: a <AdwPreferencesGroup>.

the group to add

Method: preferences-page:get-banner self ⇒ %return
Method: get-banner self ⇒ %return

Gets the banner displayed at the top of the page.

self

Passed: a <AdwPreferencesPage>.

a preferences page

%return

Returned: a <AdwBanner>, or #f.

the banner for self

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

Gets the description of self.

self

Passed: a <AdwPreferencesPage>.

a preferences page

%return

Returned: a string.

the description of self.

Method: preferences-page:get-description-centered? self ⇒ %return
Method: get-description-centered? self ⇒ %return

Gets whether the description is centered.

self

Passed: a <AdwPreferencesPage>.

a preferences page

%return

Returned: a boolean.

whether the description is centered.

Method: preferences-page:get-group self index ⇒ %return
Method: get-group self index ⇒ %return

Gets the group at index.

Can return NULL if index is larger than the number of groups in the page.

self

Passed: a <AdwPreferencesPage>.

a preferences page

index

Passed: an unsigned 32-bit integer.

a group index

%return

Returned: a <AdwPreferencesGroup>, or #f.

the group at index

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

Gets the icon name for self.

self

Passed: a <AdwPreferencesPage>.

a preferences page

%return

Returned: a string, or #f.

the icon name for self

Method: preferences-page:get-name self ⇒ %return
Method: get-name self ⇒ %return

Gets the name of self.

self

Passed: a <AdwPreferencesPage>.

a preferences page

%return

Returned: a string, or #f.

the name of self

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

Gets the title of self.

self

Passed: a <AdwPreferencesPage>.

a preferences page

%return

Returned: a string.

the title of self.

Method: preferences-page:get-use-underline? self ⇒ %return
Method: get-use-underline? self ⇒ %return

Gets whether an embedded underline in the title indicates a mnemonic.

self

Passed: a <AdwPreferencesPage>.

a preferences page

%return

Returned: a boolean.

whether an embedded underline in the title indicates a mnemonic

Method: preferences-page:insert self group index
Method: insert self group index

Inserts a preferences group to self at index.

If index is negative or larger than the number of groups, appends the group, same as PreferencesPage.add.

self

Passed: a <AdwPreferencesPage>.

a preferences page

group

Passed: a <AdwPreferencesGroup>.

the group to add

index

Passed: a 32-bit integer.

the index to insert group a

Procedure: preferences-page:new ⇒ %return

Creates a new <AdwPreferencesPage>.

%return

Returned: a <GtkWidget>.

the newly created <AdwPreferencesPage>

Method: preferences-page:remove self group
Method: remove self group

Removes a group from self.

self

Passed: a <AdwPreferencesPage>.

a preferences page

group

Passed: a <AdwPreferencesGroup>.

the group to remove

Method: preferences-page:scroll-to-top self
Method: scroll-to-top self

Scrolls the scrolled window of self to the top.

self

Passed: a <AdwPreferencesPage>.

a preferences page

Method: preferences-page:set-banner self [banner]
Method: set-banner self [banner]

Sets the banner displayed at the top of the page.

self

Passed: a <AdwPreferencesPage>.

a preferences page

banner

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

the banner to display at the top of the page

Method: preferences-page:set-description self description
Method: set-description self description

Sets the description of self.

The description is displayed at the top of the page.

self

Passed: a <AdwPreferencesPage>.

a preferences page

description

Passed: a string.

the description

Method: preferences-page:set-description-centered self centered
Method: set-description-centered self centered

Sets whether the description should be centered.

self

Passed: a <AdwPreferencesPage>.

a preferences page

centered

Passed: a boolean.

If the description should be centered

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

Sets the icon name for self.

self

Passed: a <AdwPreferencesPage>.

a preferences page

icon-name

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

the icon name

Method: preferences-page:set-name self [name]
Method: set-name self [name]

Sets the name of self.

self

Passed: a <AdwPreferencesPage>.

a preferences page

name

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

the name

Method: preferences-page:set-title self title
Method: set-title self title

Sets the title of self.

self

Passed: a <AdwPreferencesPage>.

a preferences page

title

Passed: a string.

the title

Method: preferences-page:set-use-underline self use-underline
Method: set-use-underline self use-underline

Sets whether an embedded underline in the title indicates a mnemonic.

self

Passed: a <AdwPreferencesPage>.

a preferences page

use-underline

Passed: a boolean.

TRUE if underlines in the text indicate mnemonics