[gnome-initial-setup/gnome-3-16] password: Clear verify label when appropriate



commit 5e4fd022687e16d1a807bb7e1d42eb3388dab7f6
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 58bd7c5..8e9cb24 100644
--- a/gnome-initial-setup/pages/password/gis-password-page.c
+++ b/gnome-initial-setup/pages/password/gis-password-page.c
@@ -126,14 +126,14 @@ validate (GisPasswordPage *page)
   gtk_level_bar_set_value (GTK_LEVEL_BAR (priv->password_strength), strength_level);
   gtk_label_set_label (GTK_LABEL (priv->password_explanation), long_hint);
 
+  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]