summaryrefslogtreecommitdiff
path: root/gtk/gtkpasswordentry.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-10-15 21:18:35 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2020-10-16 00:34:01 +0100
commita83d3078c2487ce61509bdfcb7683d1e873abc66 (patch)
tree1118cc222dccfd4e5bebf3a71602ee347440c7a8 /gtk/gtkpasswordentry.c
parentf67345eb55f007620ae562be69ea4bbde46c912b (diff)
downloadgtk+-a83d3078c2487ce61509bdfcb7683d1e873abc66.tar.gz
Allow toggling the password entry visibility programmatically
We are going to need a method for toggling the visibility from the accessibility layer.
Diffstat (limited to 'gtk/gtkpasswordentry.c')
-rw-r--r--gtk/gtkpasswordentry.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk/gtkpasswordentry.c b/gtk/gtkpasswordentry.c
index 8d5de422b2..8ac1cd3ade 100644
--- a/gtk/gtkpasswordentry.c
+++ b/gtk/gtkpasswordentry.c
@@ -135,8 +135,14 @@ focus_changed (GtkWidget *widget)
if (entry->keyboard)
caps_lock_state_changed (entry->keyboard, NULL, widget);
}
-
-static void
+
+/*< private >
+ * gtk_password_entry_toggle_peek:
+ * @entry: a #GtkPasswordEntry
+ *
+ * Toggles the text visibility.
+ */
+void
gtk_password_entry_toggle_peek (GtkPasswordEntry *entry)
{
gboolean visibility;