[gnome-initial-setup] password: Clear verify label when appropriate
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] password: Clear verify label when appropriate
- Date: Sat, 16 May 2015 20:59:22 +0000 (UTC)
commit 1ecf834060e4496c353f158b9a77f90894ce0751
Author: Matthias Clasen <mclasen redhat com>
Date: Sat May 16 16:52:29 2015 -0400
password: Clear verify label when appropriate
.../pages/password/gis-password-page.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnome-initial-setup/pages/password/gis-password-page.c
b/gnome-initial-setup/pages/password/gis-password-page.c
index ab56896..80ba09a 100644
--- a/gnome-initial-setup/pages/password/gis-password-page.c
+++ b/gnome-initial-setup/pages/password/gis-password-page.c
@@ -131,14 +131,14 @@ validate (GisPasswordPage *page)
else
clear_entry_validation_error (GTK_ENTRY (priv->password_entry));
+ gtk_label_set_label (GTK_LABEL (priv->confirm_explanation), "");
+
priv->valid_confirm = (strcmp (password, verify) == 0);
if (strlen (password) > 0 && strlen (verify) > 0) {
if (!priv->valid_confirm) {
- gtk_label_set_label (GTK_LABEL (priv->confirm_explanation),
- _("The passwords do not match."));
+ gtk_label_set_label (GTK_LABEL (priv->confirm_explanation), _("The passwords do not match."));
}
else {
- gtk_label_set_label (GTK_LABEL (priv->confirm_explanation), "");
set_entry_validation_checkmark (GTK_ENTRY (priv->confirm_entry));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]