[gnome-initial-setup/wip/154-account-fix-criticals-enterprise-login: 2/3] account: Clear password validation errors when entering new password
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/wip/154-account-fix-criticals-enterprise-login: 2/3] account: Clear password validation errors when entering new password
- Date: Wed, 21 Sep 2022 20:21:25 +0000 (UTC)
commit c33e55e620099c560eba804d345ec3e79e85ccaa
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.
.../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]