diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-03-13 16:27:07 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-03-14 20:31:45 -0400 |
commit | a3b73a416efdb15f91c957a7b7e7b7a77a0d8130 (patch) | |
tree | 6a6c203297f149c20be024c6cab3b8c4869815cb /gtk/gtkpasswordentry.h | |
parent | d3cecd65a5da94711315269415ef24f3896ce622 (diff) | |
download | gtk+-a3b73a416efdb15f91c957a7b7e7b7a77a0d8130.tar.gz |
password entry: Add a way to see the content
Add a ::show-peek-icon property and show a clickable
icon when it is set. Clicking it toggles the visibility
of the content. The same functionality is also accessible
via a context menu item.
This is a common feature of password entries.
Diffstat (limited to 'gtk/gtkpasswordentry.h')
-rw-r--r-- | gtk/gtkpasswordentry.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkpasswordentry.h b/gtk/gtkpasswordentry.h index 66de3ee961..2527c58ca2 100644 --- a/gtk/gtkpasswordentry.h +++ b/gtk/gtkpasswordentry.h @@ -55,6 +55,12 @@ GType gtk_password_entry_get_type (void) G_GNUC_CONST; GDK_AVAILABLE_IN_ALL GtkWidget * gtk_password_entry_new (void); +GDK_AVAILABLE_IN_ALL +void gtk_password_entry_set_show_peek_icon (GtkPasswordEntry *entry, + gboolean show_peek_icon); +GDK_AVAILABLE_IN_ALL +gboolean gtk_password_entry_get_show_peek_icon (GtkPasswordEntry *entry); + G_END_DECLS #endif /* __GTK_PASSWORD_ENTRY_H__ */ |