mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 14:00:09 +00:00
Allow toggling the password entry visibility programmatically
We are going to need a method for toggling the visibility from the accessibility layer.
This commit is contained in:
parent
f67345eb55
commit
a83d3078c2
@ -135,8 +135,14 @@ focus_changed (GtkWidget *widget)
|
|||||||
if (entry->keyboard)
|
if (entry->keyboard)
|
||||||
caps_lock_state_changed (entry->keyboard, NULL, widget);
|
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)
|
gtk_password_entry_toggle_peek (GtkPasswordEntry *entry)
|
||||||
{
|
{
|
||||||
gboolean visibility;
|
gboolean visibility;
|
||||||
|
@ -27,4 +27,6 @@ G_BEGIN_DECLS
|
|||||||
|
|
||||||
GtkText * gtk_password_entry_get_text_widget (GtkPasswordEntry *entry);
|
GtkText * gtk_password_entry_get_text_widget (GtkPasswordEntry *entry);
|
||||||
|
|
||||||
|
void gtk_password_entry_toggle_peek (GtkPasswordEntry *entry);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
Loading…
Reference in New Issue
Block a user