It derives from <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.
The <AdwActionRow> implementation of the
<GtkBuildable> interface supports adding a
child at its end by specifying “suffix” or omitting the “type” attribute
of a <child> element.
It also supports adding a child as a prefix widget by specifying “prefix” as the “type” attribute of a <child> element.
<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.
<AdwActionRow> can use the ‘.property‘ style
class to emphasize the row subtitle instead of the row title, which is
useful for displaying read-only properties.
When used together with the .monospace style class, only the
subtitle becomes monospace, not the title or any extra widgets.
parent-instanceThe widget to activate when the row is activated.
The row can be activated either by clicking on it, calling
ActionRow.activate, or via mnemonics in the title. See the
PreferencesRow:use-underline property to enable mnemonics.
The target widget will be activated by emitting the widget:mnemonic-activate signal on it.
Its value is a <GtkWidget>, or #f.
Set it with (set! (action-row:activatable-widget self) value).
The icon name for this row.
Its value is a string, or #f.
Set it with (set! (action-row:icon-name self) value).
The subtitle for this row.
The subtitle is interpreted as Pango markup unless
PreferencesRow:use-markup is set to FALSE.
Its value is a string, or #f.
Set it with (set! (action-row:subtitle self) value).
The number of lines at the end of which the subtitle label will be ellipsized.
If the value is 0, the number of lines won’t be limited.
Its value is a 32-bit integer.
Set it with (set! (action-row:subtitle-lines self) value).
Whether the user can copy the subtitle from the label.
See also label:selectable.
Its value is a boolean.
Set it with (set! (action-row:subtitle-selectable self) value).
The number of lines at the end of which the title label will be ellipsized.
If the value is 0, the number of lines won’t be limited.
Its value is a 32-bit integer.
Set it with (set! (action-row:title-lines self) value).
Activates self.
Passed: a <AdwActionRow>.
an action row
Adds a prefix widget to self.
Passed: a <AdwActionRow>.
an action row
Passed: a <GtkWidget>.
a widget
Adds a suffix widget to self.
Passed: a <AdwActionRow>.
an action row
Passed: a <GtkWidget>.
a widget
Gets the widget activated when self is activated.
Passed: a <AdwActionRow>.
an action row
Returned: a <GtkWidget>, or #f.
the activatable widget for self
Gets the icon name for self.
Passed: a <AdwActionRow>.
an action row
Returned: a string, or #f.
the icon name for self
Gets the subtitle for self.
Passed: a <AdwActionRow>.
an action row
Returned: a string, or #f.
the subtitle for self
Gets the number of lines at the end of which the subtitle label will be ellipsized.
Passed: a <AdwActionRow>.
an action row
Returned: a 32-bit integer.
the number of lines at the end of which the subtitle label will be ellipsized
Gets whether the user can copy the subtitle from the label
Passed: a <AdwActionRow>.
an action row
Returned: a boolean.
whether the user can copy the subtitle from the label
Gets the number of lines at the end of which the title label will be ellipsized.
Passed: a <AdwActionRow>.
an action row
Returned: a 32-bit integer.
the number of lines at the end of which the title label will be ellipsized
Creates a new <AdwActionRow>.
Returned: a <GtkWidget>.
the newly created <AdwActionRow>
Removes a child from self.
Passed: a <AdwActionRow>.
an action row
Passed: a <GtkWidget>.
the child to be removed
Sets the widget to activate when self is activated.
The row can be activated either by clicking on it, calling
ActionRow.activate, or via mnemonics in the title. See the
PreferencesRow:use-underline property to enable mnemonics.
The target widget will be activated by emitting the widget:mnemonic-activate signal on it.
Passed: a <AdwActionRow>.
an action row
Passed, or left out: a <GtkWidget>, or
#f.
the target widget
Sets the icon name for self.
Passed: a <AdwActionRow>.
an action row
Passed, or left out: a string, or #f.
the icon name
Sets the subtitle for self.
The subtitle is interpreted as Pango markup unless
PreferencesRow:use-markup is set to FALSE.
Passed: a <AdwActionRow>.
an action row
Passed: a string.
the subtitle
Sets the number of lines at the end of which the subtitle label will be ellipsized.
If the value is 0, the number of lines won’t be limited.
Passed: a <AdwActionRow>.
an action row
Passed: a 32-bit integer.
the number of lines at the end of which the subtitle label will be ellipsized
Sets whether the user can copy the subtitle from the label
See also label:selectable.
Passed: a <AdwActionRow>.
an action row
Passed: a boolean.
TRUE if the user can copy the subtitle from the label
Sets the number of lines at the end of which the title label will be ellipsized.
If the value is 0, the number of lines won’t be limited.
Passed: a <AdwActionRow>.
an action row
Passed: a 32-bit integer.
the number of lines at the end of which the title label will be ellipsized
Connect a handler with (connect object action-row:activated
handler). It is called as (handler self).
This signal is emitted after the row has been activated.
Passed: a <AdwActionRow>.
Activates self.
To override it in a new class, give register-type #:vfuncs
`((activate . ,procedure)). The procedure is called as
(procedure self).
Passed: the class whose implementation to call:
<AdwActionRow>, or a class that derives from it,
or its GType number.
Passed: a <AdwActionRow>.
an action row