[gnome-initial-setup/shell/4765: 329/362] Fixed issue of pasword validations when changing password field
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/shell/4765: 329/362] Fixed issue of pasword validations when changing password field
- Date: Thu, 19 Mar 2015 01:48:44 +0000 (UTC)
commit f6ce50a4938a04fa495080f083e67e66505f3a75
Author: Srdjan Grubor <sgnn7 sgnn7 org>
Date: Wed Feb 4 12:53:10 2015 -0600
Fixed issue of pasword validations when changing password field
If password was set and then confirmation password typed to not match,
following this with fixing of the password did not remove the warning
on the confirmation spot.
.../pages/account/gis-account-page.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/gnome-initial-setup/pages/account/gis-account-page.c
b/gnome-initial-setup/pages/account/gis-account-page.c
index 72c7ca4..2b9495d 100644
--- a/gnome-initial-setup/pages/account/gis-account-page.c
+++ b/gnome-initial-setup/pages/account/gis-account-page.c
@@ -349,6 +349,16 @@ refresh_reason_timeout (GisAccountPage *page)
}
static void
+clear_password_validation_error (GisAccountPage *page)
+{
+ GtkWidget *password_entry = WID("account-password-entry");
+ GtkWidget *confirm_entry = WID("account-confirm-entry");
+
+ clear_entry_validation_error (GTK_ENTRY (password_entry));
+ clear_entry_validation_error (GTK_ENTRY (confirm_entry));
+}
+
+static void
update_password_entries (GisAccountPage *page)
{
GisAccountPagePrivate *priv = gis_account_page_get_instance_private (page);
@@ -376,7 +386,7 @@ update_password_entries (GisAccountPage *page)
update_valid_confirm (page);
if (priv->valid_confirm)
- clear_entry_validation_error (GTK_ENTRY (password_entry));
+ clear_password_validation_error (page);
gtk_widget_set_sensitive (confirm_entry, TRUE);
@@ -390,7 +400,6 @@ password_changed (GtkWidget *w,
GParamSpec *pspec,
GisAccountPage *page)
{
- clear_entry_validation_error (GTK_ENTRY (w));
update_password_entries (page);
update_account_page_status (page);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]