From 9f2a621328d6e81dac87a4f4ac2cbe03a41af0c4 Mon Sep 17 00:00:00 2001 From: Christopher Davis Date: Wed, 6 Jul 2022 13:48:25 -0400 Subject: [PATCH] passwordentry: Use password input purpose Per discussion in #gtk on Matrix --- gtk/gtkpasswordentry.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkpasswordentry.c b/gtk/gtkpasswordentry.c index b0ab04836f..25ae809c3d 100644 --- a/gtk/gtkpasswordentry.c +++ b/gtk/gtkpasswordentry.c @@ -207,6 +207,7 @@ gtk_password_entry_init (GtkPasswordEntry *entry) entry->entry = gtk_text_new (); gtk_text_set_buffer (GTK_TEXT (entry->entry), buffer); gtk_text_set_visibility (GTK_TEXT (entry->entry), FALSE); + gtk_text_set_input_purpose (GTK_TEXT (entry->entry), GTK_INPUT_PURPOSE_PASSWORD); gtk_widget_set_parent (entry->entry, GTK_WIDGET (entry)); gtk_editable_init_delegate (GTK_EDITABLE (entry)); g_signal_connect_swapped (entry->entry, "notify::has-focus", G_CALLBACK (focus_changed), entry);