[gnome-initial-setup] Revert "password: don't set a checkmark in the first password entry"
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] Revert "password: don't set a checkmark in the first password entry"
- Date: Mon, 31 Aug 2015 15:48:53 +0000 (UTC)
commit 55774e2572598dadc30b01a1bfe41ce5b2e6d3ca
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Thu Aug 27 20:29:51 2015 -0500
Revert "password: don't set a checkmark in the first password entry"
This reverts commit b7f05cf285c0809563b51a0f9981c53d62c2f0bb.
https://bugzilla.gnome.org/show_bug.cgi?id=754213
.../pages/password/gis-password-page.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gnome-initial-setup/pages/password/gis-password-page.c
b/gnome-initial-setup/pages/password/gis-password-page.c
index 91dc694..7fa5d36 100644
--- a/gnome-initial-setup/pages/password/gis-password-page.c
+++ b/gnome-initial-setup/pages/password/gis-password-page.c
@@ -46,6 +46,7 @@ struct _GisPasswordPagePrivate
GtkWidget *password_explanation;
GtkWidget *confirm_explanation;
gboolean valid_confirm;
+ gboolean valid_password;
guint timeout_id;
const gchar *username;
};
@@ -135,6 +136,10 @@ validate (GisPasswordPage *page)
gtk_label_set_label (GTK_LABEL (priv->confirm_explanation), "");
priv->valid_confirm = FALSE;
+ priv->valid_password = (strength_level > 0);
+ if (priv->valid_password)
+ set_entry_validation_checkmark (GTK_ENTRY (priv->password_entry));
+
if (strlen (password) > 0 && strlen (verify) > 0) {
priv->valid_confirm = (strcmp (password, verify) == 0);
if (!priv->valid_confirm) {
@@ -168,6 +173,7 @@ password_changed (GtkWidget *w,
clear_entry_validation_error (GTK_ENTRY (w));
clear_entry_validation_error (GTK_ENTRY (priv->confirm_entry));
+ priv->valid_password = FALSE;
update_page_validation (page);
if (priv->timeout_id != 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]