1.25 <AdwEntryRow>

Class: <AdwEntryRow>

It derives from <AdwPreferencesRow>.

A <GtkListBoxRow> with an embedded text entry.

<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 EntryRow: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 PasswordEntryRow.

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 <child> element.

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

CSS nodes

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

Fields

parent-instance

Properties

Property: entry-row:activates-default self

Whether activating the embedded entry can activate the default widget.

Its value is a boolean.

Set it with (set! (entry-row:activates-default self) value).

Property: entry-row:attributes self

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

The <PangoAttribute>’s start_index and end_index must refer to the <GtkEntryBuffer> text, i.e. without the preedit string.

Its value is a <PangoAttrList>, or #f.

Set it with (set! (entry-row:attributes self) value).

Property: entry-row:enable-emoji-completion self

Whether to suggest emoji replacements on the entry row.

Emoji replacement is done with :-delimited names, like :heart:.

Its value is a boolean.

Set it with (set! (entry-row:enable-emoji-completion self) value).

Property: entry-row:input-hints self

Additional input hints for the entry row.

Input hints allow input methods to fine-tune their behavior.

See also: entry-row:input-purpose

Its value is a <GtkInputHints> (or, to set it, a list of its symbols, or one of them).

Set it with (set! (entry-row:input-hints self) value).

Property: entry-row:input-purpose self

The input purpose of the entry row.

The input purpose can be used by input methods to adjust their behavior.

Its value is a <GtkInputPurpose> (or, to set it, one of its symbols).

Set it with (set! (entry-row:input-purpose self) value).

Property: entry-row:max-length self

Maximum number of characters for the entry.

Its value is a 32-bit integer.

Set it with (set! (entry-row:max-length self) value).

Property: entry-row:show-apply-button self

Whether to show the apply button.

When set to TRUE, typing text in the entry will reveal an apply button. Clicking it or pressing the Enter key will hide the button and emit the "apply" signal.

This is useful if changing the entry contents can trigger an expensive operation, e.g. network activity, to avoid triggering it after typing every character.

Its value is a boolean.

Set it with (set! (entry-row:show-apply-button self) value).

Property: entry-row:text-length self

The length of the text in the entry row.

Its value is an unsigned 32-bit integer.

It is read only.

Procedures

Method: entry-row:add-prefix self widget
Method: add-prefix self widget

Adds a prefix widget to self.

self

Passed: a <AdwEntryRow>.

an entry row

widget

Passed: a <GtkWidget>.

a widget

Method: entry-row:add-suffix self widget
Method: add-suffix self widget

Adds a suffix widget to self.

self

Passed: a <AdwEntryRow>.

an entry row

widget

Passed: a <GtkWidget>.

a widget

Method: entry-row:get-activates-default? self ⇒ %return
Method: get-activates-default? self ⇒ %return

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

self

Passed: a <AdwEntryRow>.

an entry row

%return

Returned: a boolean.

whether to activate the default widget

Method: entry-row:get-attributes self ⇒ %return
Method: get-attributes self ⇒ %return

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

self

Passed: a <AdwEntryRow>.

an entry row

%return

Returned: a <PangoAttrList>, or #f.

the list of attributes

Method: entry-row:get-enable-emoji-completion? self ⇒ %return
Method: get-enable-emoji-completion? self ⇒ %return

Gets whether to suggest emoji replacements on self.

self

Passed: a <AdwEntryRow>.

an entry row

%return

Returned: a boolean.

whether or not emoji completion is enabled

Method: entry-row:get-input-hints self ⇒ %return
Method: get-input-hints self ⇒ %return

Gets the additional input hints of self.

self

Passed: a <AdwEntryRow>.

an entry row

%return

Returned: a <GtkInputHints>.

The input hints

Method: entry-row:get-input-purpose self ⇒ %return
Method: get-input-purpose self ⇒ %return

Gets the input purpose of self.

self

Passed: a <AdwEntryRow>.

an entry row

%return

Returned: a <GtkInputPurpose>.

the input purpose

Method: entry-row:get-max-length self ⇒ %return
Method: get-max-length self ⇒ %return

Retrieves the maximum length of the entry.

self

Passed: a <AdwEntryRow>.

an entry row

%return

Returned: a 32-bit integer.

The maximum length of the entry.

Method: entry-row:get-show-apply-button? self ⇒ %return
Method: get-show-apply-button? self ⇒ %return

Gets whether self can show the apply button.

self

Passed: a <AdwEntryRow>.

an entry row

%return

Returned: a boolean.

whether to show the apply button

Method: entry-row:get-text-length self ⇒ %return
Method: get-text-length self ⇒ %return

Retrieves the current length of the text in self.

self

Passed: a <AdwEntryRow>.

an entry row

%return

Returned: an unsigned 32-bit integer.

The current number of characters in self, or 0 if there are none.

Method: entry-row:grab-focus-without-selecting? self ⇒ %return
Method: grab-focus-without-selecting? self ⇒ %return

Causes self to have keyboard focus without selecting the text.

See text:grab-focus-without-selecting? for more information.

self

Passed: a <AdwEntryRow>.

an entry row

%return

Returned: a boolean.

whether the focus is now inside self

Procedure: entry-row:new ⇒ %return

Creates a new <AdwEntryRow>.

%return

Returned: a <GtkWidget>.

the newly created <AdwEntryRow>

Method: entry-row:remove self widget
Method: remove self widget

Removes a child from self.

self

Passed: a <AdwEntryRow>.

an entry row

widget

Passed: a <GtkWidget>.

the child to be removed

Method: entry-row:set-activates-default self activates
Method: set-activates-default self activates

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

self

Passed: a <AdwEntryRow>.

an entry row

activates

Passed: a boolean.

whether to activate the default widget

Method: entry-row:set-attributes self [attributes]
Method: set-attributes self [attributes]

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

The <PangoAttribute>’s start_index and end_index must refer to the <GtkEntryBuffer> text, i.e. without the preedit string.

self

Passed: a <AdwEntryRow>.

an entry row

attributes

Passed, or left out: a <PangoAttrList>, or #f.

a list of attributes

Method: entry-row:set-enable-emoji-completion self enable-emoji-completion
Method: set-enable-emoji-completion self enable-emoji-completion

Sets whether to suggest emoji replacements on self.

Emoji replacement is done with :-delimited names, like :heart:.

self

Passed: a <AdwEntryRow>.

an entry row

enable-emoji-completion

Passed: a boolean.

Whether emoji completion should be enabled or not

Method: entry-row:set-input-hints self hints
Method: set-input-hints self hints

Set additional input hints for self.

Input hints allow input methods to fine-tune their behavior.

See also: AdwEntryRow:input-purpose

self

Passed: a <AdwEntryRow>.

an entry row

hints

Passed: a <GtkInputHints>, or a list of its symbols, or one of them.

the hints

Method: entry-row:set-input-purpose self purpose
Method: set-input-purpose self purpose

Sets the input purpose of self.

The input purpose can be used by input methods to adjust their behavior.

self

Passed: a <AdwEntryRow>.

an entry row

purpose

Passed: a <GtkInputPurpose>, or one of its symbols.

the purpose

Method: entry-row:set-max-length self max-length
Method: set-max-length self max-length

Sets the maximum length of the entry.

self

Passed: a <AdwEntryRow>.

an entry row

max-length

Passed: a 32-bit integer.

maximum length of the entry

Method: entry-row:set-show-apply-button self show-apply-button
Method: set-show-apply-button self show-apply-button

Sets whether self can show the apply button.

When set to TRUE, typing text in the entry will reveal an apply button. Clicking it or pressing the Enter key will hide the button and emit the "apply" signal.

This is useful if changing the entry contents can trigger an expensive operation, e.g. network activity, to avoid triggering it after typing every character.

self

Passed: a <AdwEntryRow>.

an entry row

show-apply-button

Passed: a boolean.

whether to show the apply button

Signals

Signal: entry-row:apply

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

Emitted when the apply button is pressed.

See EntryRow:show-apply-button.

self

Passed: a <AdwEntryRow>.

Signal: entry-row:entry-activated

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

Emitted when the embedded entry is activated.

self

Passed: a <AdwEntryRow>.