Class

AdwEntryRow

Description [src]

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

A GtkListBoxRow with an embedded text entry.

entry-row

AdwEntryRow has a title that doubles as placeholder text. It shows an icon indicating that it’s editable and can receive additional widgets before or after the editable part.

If AdwEntryRow:show-apply-button is set to TRUE, AdwEntryRow can show an apply button when editing its contents. This can be useful if changing its contents can result in an expensive operation, such as network activity.

AdwEntryRow provides only minimal API and should be used with the GtkEditable API.

See also AdwPasswordEntryRow.

AdwEntryRow as GtkBuildable

The AdwEntryRow 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

AdwEntryRow has a single CSS node with name row and the .entry style class.

Available since:1.2

Ancestors

Implements

  • GtkAccessible
  • GtkActionable
  • GtkBuildable
  • GtkConstraintTarget
  • GtkEditable

Constructors

adw_entry_row_new

Creates a new AdwEntryRow.

Available since: 1.2

Instance methods

adw_entry_row_add_prefix

Adds a prefix widget to self.

Available since: 1.2

adw_entry_row_add_suffix

Adds a suffix widget to self.

Available since: 1.2

adw_entry_row_get_activates_default

Gets whether activating the embedded entry can activate the default widget.

Available since: 1.2

adw_entry_row_get_attributes

Gets Pango attributes applied to the text of the embedded entry.

Available since: 1.2

adw_entry_row_get_enable_emoji_completion

Gets whether to suggest emoji replacements on self.

Available since: 1.2

adw_entry_row_get_input_hints

Gets the additional input hints of self.

Available since: 1.2

adw_entry_row_get_input_purpose

Gets the input purpose of self.

Available since: 1.2

adw_entry_row_get_show_apply_button

Gets whether self can show the apply button.

Available since: 1.2

adw_entry_row_grab_focus_without_selecting

Causes self to have keyboard focus without selecting the text.

Available since: 1.3

adw_entry_row_remove

Removes a child from self.

Available since: 1.2

adw_entry_row_set_activates_default

Sets whether activating the embedded entry can activate the default widget.

Available since: 1.2

adw_entry_row_set_attributes

Sets Pango attributes to apply to the text of the embedded entry.

Available since: 1.2

adw_entry_row_set_enable_emoji_completion

Sets whether to suggest emoji replacements on self.

Available since: 1.2

adw_entry_row_set_input_hints

Set additional input hints for self.

Available since: 1.2

adw_entry_row_set_input_purpose

Sets the input purpose of self.

Available since: 1.2

adw_entry_row_set_show_apply_button

Sets whether self can show the apply button.

Available since: 1.2

Methods inherited from AdwPreferencesRow (8)
adw_preferences_row_get_title

Gets the title of the preference represented by self.

adw_preferences_row_get_title_selectable

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

Available since: 1.1

adw_preferences_row_get_use_markup

Gets whether to use Pango markup for the title label.

Available since: 1.2

adw_preferences_row_get_use_underline

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

adw_preferences_row_set_title

Sets the title of the preference represented by self.

adw_preferences_row_set_title_selectable

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

Available since: 1.1

adw_preferences_row_set_use_markup

Sets whether to use Pango markup for the title label.

Available since: 1.2

adw_preferences_row_set_use_underline

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

Properties

Adw.EntryRow:activates-default

Whether activating the embedded entry can activate the default widget.

Available since: 1.2

Adw.EntryRow:attributes

A list of Pango attributes to apply to the text of the embedded entry.

Available since: 1.2

Adw.EntryRow:enable-emoji-completion

Whether to suggest emoji replacements on the entry row.

Available since: 1.2

Adw.EntryRow:input-hints

Additional input hints for the entry row.

Available since: 1.2

Adw.EntryRow:input-purpose

The input purpose of the entry row.

Available since: 1.2

Adw.EntryRow:show-apply-button

Whether to show the apply button.

Available since: 1.2

Properties inherited from AdwPreferencesRow (4)
Adw.PreferencesRow:title

The title of the preference represented by this row.

Adw.PreferencesRow:title-selectable

Whether the user can copy the title from the label.

Available since: 1.1

Adw.PreferencesRow:use-markup

Whether to use Pango markup for the title label.

Available since: 1.2

Adw.PreferencesRow:use-underline

Whether an embedded underline in the title indicates a mnemonic.

Signals

Adw.EntryRow::apply

Emitted when the apply button is pressed.

Available since: 1.2

Adw.EntryRow::entry-activated

Emitted when the embedded entry is activated.

Available since: 1.2

Class structure

struct AdwEntryRowClass {
  AdwPreferencesRowClass parent_class;
  
}
Class members
parent_class
AdwPreferencesRowClass
 

The parent class.