Adw.ActionRow
Description: Reference for Adw.ActionRow

### Class

# AdwActionRow

#### Description [src]

    class Adw.ActionRow : Adw.PreferencesRow {
      parent_instance: AdwPreferencesRow
    }

A `GtkListBoxRow` used to present actions.

The `AdwActionRow` widget can have a title, a subtitle and an icon. The row can receive additional widgets at its end, or prefix widgets at its start.

It is convenient to present a preference and its related actions.

`AdwActionRow` is unactivatable by default, giving it an activatable widget will automatically make it activatable, but unsetting it won’t change the row’s activatability.

## AdwActionRow as GtkBuildable

The `AdwActionRow` implementation of the `GtkBuildable` interface supports adding a child at its end by specifying “suffix” or omitting the “type” attribute of a element.

It also supports adding a child as a prefix widget by specifying “prefix” as the “type” attribute of a element.

## CSS nodes

`AdwActionRow` has a main CSS node with name `row`.

It contains the subnode `box.header` for its main horizontal box, and `box.title` for the vertical box containing the title and subtitle labels.

It contains subnodes `label.title` and `label.subtitle` representing respectively the title label and subtitle label.

Available since: | 1.0

#### Hierarchy

#### Ancestors

- AdwPreferencesRow
- GtkListBoxRow
- GtkWidget
- GInitiallyUnowned
- GObject

#### Implements

- GtkAccessible
- GtkActionable
- GtkBuildable
- GtkConstraintTarget

#### Constructors

###### adw_action_row_new

Creates a new `AdwActionRow`.

Available since: 1.0

#### Instance methods

###### adw_action_row_activate

Activates `self`.

Available since: 1.0

###### adw_action_row_add_prefix

Adds a prefix widget to `self`.

Available since: 1.0

###### adw_action_row_add_suffix

Adds a suffix widget to `self`.

Available since: 1.0

###### adw_action_row_get_activatable_widget

Gets the widget activated when `self` is activated.

Available since: 1.0

###### adw_action_row_get_icon_name

Gets the icon name for `self`.

Available since: 1.0

###### adw_action_row_get_subtitle

Gets the subtitle for `self`.

Available since: 1.0

###### adw_action_row_get_subtitle_lines

Gets the number of lines at the end of which the subtitle label will be ellipsized.

Available since: 1.0

###### adw_action_row_get_title_lines

Gets the number of lines at the end of which the title label will be ellipsized.

Available since: 1.0

###### adw_action_row_remove

Removes a child from `self`.

Available since: 1.0

###### adw_action_row_set_activatable_widget

Sets the widget to activate when `self` is activated.

Available since: 1.0

###### adw_action_row_set_icon_name

Sets the icon name for `self`.

Available since: 1.0

###### adw_action_row_set_subtitle

Sets the subtitle for `self`.

Available since: 1.0

###### adw_action_row_set_subtitle_lines

Sets the number of lines at the end of which the subtitle label will be ellipsized.

Available since: 1.0

###### adw_action_row_set_title_lines

Sets the number of lines at the end of which the title label will be ellipsized.

Available since: 1.0

##### Methods inherited from AdwPreferencesRow (6)

###### adw_preferences_row_get_title

Gets the title of the preference represented by `self`.

Available since: 1.0

###### adw_preferences_row_get_title_selectable

Gets whether the user can copy the title from the label.

Available since: 1.0

###### adw_preferences_row_get_use_underline

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

Available since: 1.0

###### adw_preferences_row_set_title

Sets the title of the preference represented by `self`.

Available since: 1.0

###### adw_preferences_row_set_title_selectable

Sets whether the user can copy the title from the label.

Available since: 1.0

###### adw_preferences_row_set_use_underline

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

Available since: 1.0

##### Methods inherited from GtkListBoxRow (11)

##### Methods inherited from GtkWidget (159)

##### Methods inherited from GObject (43)

#### Properties

###### Adw.ActionRow:activatable-widget

The widget to activate when the row is activated.

Available since: 1.0

###### Adw.ActionRow:icon-name

The icon name for this row.

Available since: 1.0

###### Adw.ActionRow:subtitle

The subtitle for this row.

Available since: 1.0

###### Adw.ActionRow:subtitle-lines

The number of lines at the end of which the subtitle label will be ellipsized.

Available since: 1.0

###### Adw.ActionRow:title-lines

The number of lines at the end of which the title label will be ellipsized.

Available since: 1.0

##### Properties inherited from AdwPreferencesRow (3)

###### Adw.PreferencesRow:title

The title of the preference represented by this row.

Available since: 1.0

###### Adw.PreferencesRow:title-selectable

Whether the user can copy the title from the label.

Available since: 1.0

###### Adw.PreferencesRow:use-underline

Whether an embedded underline in the title indicates a mnemonic.

Available since: 1.0

##### Properties inherited from GtkListBoxRow (3)

##### Properties inherited from GtkWidget (34)

#### Signals

###### Adw.ActionRow::activated

This signal is emitted after the row has been activated.

Available since: 1.0

##### Signals inherited from GtkListBoxRow (1)

##### Signals inherited from GtkWidget (13)

##### Signals inherited from GObject (1)

#### Class structure

    struct AdwActionRowClass {
      AdwPreferencesRowClass parent_class;
      void (* activate) (
        AdwActionRow* self
      );

    }

###### Class members

`parent_class` |
    AdwPreferencesRowClass
| The parent class.
`activate` |
    void (* activate) (
        AdwActionRow* self
      )
| No description available.

#### Virtual methods

###### Adw.ActionRowClass.activate

Activates `self`.

Available since: 1.0