[gnome-initial-setup/wip/154-account-fix-criticals-enterprise-login: 12/13] account: Clear password validation errors when entering new password




commit dffb1c449df90ab3bd6071ea733696090129ddf5
Author: Kalev Lember <klember redhat com>
Date:   Wed Sep 21 22:00:21 2022 +0200

    account: Clear password validation errors when entering new password
    
    Get rid of the red outline as soon as the user starts typing a new
    password.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-initial-setup/-/merge_requests/160>

 .../pages/account/gis-account-page-enterprise.c               | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/gnome-initial-setup/pages/account/gis-account-page-enterprise.c 
b/gnome-initial-setup/pages/account/gis-account-page-enterprise.c
index 87a12bc8..8fdc3188 100644
--- a/gnome-initial-setup/pages/account/gis-account-page-enterprise.c
+++ b/gnome-initial-setup/pages/account/gis-account-page-enterprise.c
@@ -742,6 +742,13 @@ on_entry_changed (GtkEditable *editable,
   clear_entry_validation_error (GTK_ENTRY (editable));
 }
 
+static void
+on_password_changed (GtkEditable *editable,
+                     gpointer user_data)
+{
+  clear_password_validation_error (GTK_WIDGET (editable));
+}
+
 static void
 gis_account_page_enterprise_realize (GtkWidget *widget)
 {
@@ -776,6 +783,10 @@ gis_account_page_enterprise_constructed (GObject *object)
                     G_CALLBACK (on_domain_changed), page);
   g_signal_connect (page->login, "changed",
                     G_CALLBACK (on_entry_changed), page);
+  g_signal_connect (page->password, "changed",
+                    G_CALLBACK (on_password_changed), page);
+  g_signal_connect (page->join_password, "changed",
+                    G_CALLBACK (on_password_changed), page);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]