PasswordEntryRow

A class@EntryRow tailored for entering secrets.

<picture> <source srcset="password-entry-row-dark.png" media="(prefers-color-scheme: dark)"> <img src="password-entry-row.png" alt="password-entry-row"> </picture>

It does not show its contents in clear text, does not allow to copy it to the clipboard, and shows a warning when Caps Lock is engaged. If the underlying platform allows it, adw.password_entry_row.PasswordEntryRow will also place the text in a non-pageable memory area, to avoid it being written out to disk by the operating system.

It offer a way to reveal the contents in clear text.

CSS Nodes

adw.password_entry_row.PasswordEntryRow has a single CSS node with name row that carries .entry and .password style classes.

class PasswordEntryRow : EntryRow {}

Constructors

this
this()

Creates a new adw.password_entry_row.PasswordEntryRow.

Inherited Members

From EntryRow

addPrefix
void addPrefix(gtk.widget.Widget widget)

Adds a prefix widget to self.

addSuffix
void addSuffix(gtk.widget.Widget widget)

Adds a suffix widget to self.

getActivatesDefault
bool getActivatesDefault()

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

getAttributes
pango.attr_list.AttrList getAttributes()

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

getEnableEmojiCompletion
bool getEnableEmojiCompletion()

Gets whether to suggest emoji replacements on self.

getInputHints
gtk.types.InputHints getInputHints()

Gets the additional input hints of self.

getInputPurpose
gtk.types.InputPurpose getInputPurpose()

Gets the input purpose of self.

getShowApplyButton
bool getShowApplyButton()

Gets whether self can show the apply button.

getTextLength
uint getTextLength()

Retrieves the current length of the text in self.

grabFocusWithoutSelecting
bool grabFocusWithoutSelecting()

Causes self to have keyboard focus without selecting the text.

remove
void remove(gtk.widget.Widget widget)

Removes a child from self.

setActivatesDefault
void setActivatesDefault(bool activates)

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

setAttributes
void setAttributes(pango.attr_list.AttrList attributes)

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

setEnableEmojiCompletion
void setEnableEmojiCompletion(bool enableEmojiCompletion)

Sets whether to suggest emoji replacements on self.

setInputHints
void setInputHints(gtk.types.InputHints hints)

Set additional input hints for self.

setInputPurpose
void setInputPurpose(gtk.types.InputPurpose purpose)

Sets the input purpose of self.

setShowApplyButton
void setShowApplyButton(bool showApplyButton)

Sets whether self can show the apply button.

connectApply
ulong connectApply(T callback, Flag!"After" after)

Connect to Apply signal.

connectEntryActivated
ulong connectEntryActivated(T callback, Flag!"After" after)

Connect to EntryActivated signal.