Top | ![]() |
![]() |
![]() |
![]() |
gboolean | activates-default | Read / Write |
gchar * | placeholder-text | Read / Write |
gboolean | show-peek-icon | Read / Write |
GtkPasswordEntry implements AtkImplementorIface, GtkBuildable and GtkEditable.
GtkPasswordEntry is entry that has been tailored for entering secrets. It does not show its contents in clear text, does not allow to copy it to the clipboard, and it shows a warning when Caps Lock is engaged.
Optionally, it can offer a way to reveal the contents in clear text.
GtkPasswordEntry provides only minimal API and should be used with the GtkEditable API.
void gtk_password_entry_set_show_peek_icon (GtkPasswordEntry *entry
,gboolean show_peek_icon
);
Sets whether the entry should have a clickable icon to show the contents of the entry in clear text.
Setting this to FALSE
also hides the text again.
gboolean
gtk_password_entry_get_show_peek_icon (GtkPasswordEntry *entry
);
Returns whether the entry is showing a clickable icon to reveal the contents of the entry in clear text.
“activates-default”
property“activates-default” gboolean
Whether to activate the default widget (such as the default button in a dialog) when Enter is pressed.
Flags: Read / Write
Default value: FALSE
“placeholder-text”
property“placeholder-text” gchar *
Show text in the entry when it’s empty and unfocused.
Flags: Read / Write
Default value: NULL
“show-peek-icon”
property“show-peek-icon” gboolean
Whether to show an icon for revealing the content.
Flags: Read / Write
Default value: FALSE