1.43 <AdwPreferencesRow>

Class: <AdwPreferencesRow>

It derives from <GtkListBoxRow>.

A <GtkListBoxRow> used to present preferences.

The <AdwPreferencesRow> widget has a title that PreferencesDialog will use to let the user look for a preference. It doesn’t present the title in any way and lets you present the preference as you please.

ActionRow and its derivatives are convenient to use as preference rows as they take care of presenting the preference’s title while letting you compose the inputs of the preference around it.

Fields

parent-instance

Properties

Property: preferences-row:title self

The title of the preference represented by this row.

The title is interpreted as Pango markup unless PreferencesRow:use-markup is set to FALSE.

Its value is a string, or #f.

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

Property: preferences-row:title-selectable self

Whether the user can copy the title from the label.

See also label:selectable.

Its value is a boolean.

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

Property: preferences-row:use-markup self

Whether to use Pango markup for the title label.

Subclasses may also use it for other labels, such as subtitle.

See also parse-markup.

Its value is a boolean.

Set it with (set! (preferences-row:use-markup self) value).

Property: preferences-row:use-underline self

Whether an embedded underline in the title indicates a mnemonic.

Its value is a boolean.

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

Procedures

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

Gets the title of the preference represented by self.

self

Passed: a <AdwPreferencesRow>.

a preferences row

%return

Returned: a string.

the title

Method: preferences-row:get-title-selectable? self ⇒ %return
Method: get-title-selectable? self ⇒ %return

Gets whether the user can copy the title from the label

self

Passed: a <AdwPreferencesRow>.

a preferences row

%return

Returned: a boolean.

whether the user can copy the title from the label

Method: preferences-row:get-use-markup? self ⇒ %return
Method: get-use-markup? self ⇒ %return

Gets whether to use Pango markup for the title label.

self

Passed: a <AdwPreferencesRow>.

a preferences row

%return

Returned: a boolean.

whether to use markup

Method: preferences-row: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 <AdwPreferencesRow>.

a preferences row

%return

Returned: a boolean.

whether an embedded underline in the title indicates a mnemonic

Procedure: preferences-row:new ⇒ %return

Creates a new <AdwPreferencesRow>.

%return

Returned: a <GtkWidget>.

the newly created <AdwPreferencesRow>

Method: preferences-row:set-title self title
Method: set-title self title

Sets the title of the preference represented by self.

The title is interpreted as Pango markup unless PreferencesRow:use-markup is set to FALSE.

self

Passed: a <AdwPreferencesRow>.

a preferences row

title

Passed: a string.

the title

Method: preferences-row:set-title-selectable self title-selectable
Method: set-title-selectable self title-selectable

Sets whether the user can copy the title from the label

See also label:selectable.

self

Passed: a <AdwPreferencesRow>.

a preferences row

title-selectable

Passed: a boolean.

TRUE if the user can copy the title from the label

Method: preferences-row:set-use-markup self use-markup
Method: set-use-markup self use-markup

Sets whether to use Pango markup for the title label.

Subclasses may also use it for other labels, such as subtitle.

See also parse-markup.

self

Passed: a <AdwPreferencesRow>.

a preferences row

use-markup

Passed: a boolean.

whether to use markup

Method: preferences-row: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 <AdwPreferencesRow>.

a preferences row

use-underline

Passed: a boolean.

TRUE if underlines in the text indicate mnemonics