1.15 <AdwButtonRow>

Class: <AdwButtonRow>

It derives from <AdwPreferencesRow>.

A <GtkListBoxRow> that looks like a button.

The <AdwButtonRow> widget has a title and two icons: before and after the title.

It is convenient for presenting actions like "Delete" at the end of a boxed list.

<AdwButtonRow> is always activatable.

CSS nodes

<AdwButtonRow> has a main CSS node with name row and the style class .button.

It contains the subnode box for its main horizontal box, which contains the nodes: image.icon.start for the start icon, label.title for the title, and image.icon.end for the end icon.

Style classes

The ‘.suggested-action‘ style class makes <AdwButtonRow> use accent color for its background. It should be used very sparingly to denote important buttons.

The ‘.destructive-action‘ style makes the row use destructive colors. It can be used to draw attention to the potentially damaging consequences of using it. This style acts as a warning to the user.

Properties

Property: button-row:end-icon-name self

The icon name to show after the title.

Its value is a string, or #f.

Set it with (set! (button-row:end-icon-name self) value).

Property: button-row:start-icon-name self

The icon name to show before the title.

Its value is a string, or #f.

Set it with (set! (button-row:start-icon-name self) value).

Procedures

Method: button-row:get-end-icon-name self ⇒ %return
Method: get-end-icon-name self ⇒ %return

Gets the end icon name for self.

self

Passed: a <AdwButtonRow>.

a button row

%return

Returned: a string, or #f.

the end icon name for self

Method: button-row:get-start-icon-name self ⇒ %return
Method: get-start-icon-name self ⇒ %return

Gets the start icon name for self.

self

Passed: a <AdwButtonRow>.

a button row

%return

Returned: a string, or #f.

the start icon name for self

Procedure: button-row:new ⇒ %return

Creates a new <AdwButtonRow>.

%return

Returned: a <GtkWidget>.

the newly created <AdwButtonRow>

Method: button-row:set-end-icon-name self [icon-name]
Method: set-end-icon-name self [icon-name]

Sets the end icon name for self.

self

Passed: a <AdwButtonRow>.

a button row

icon-name

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

the end icon name

Method: button-row:set-start-icon-name self [icon-name]
Method: set-start-icon-name self [icon-name]

Sets the start icon name for self.

self

Passed: a <AdwButtonRow>.

a button row

icon-name

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

the start icon name

Signals

Signal: button-row:activated

Connect a handler with (connect object button-row:activated handler). It is called as (handler self).

This signal is emitted after the row has been activated.

self

Passed: a <AdwButtonRow>.