user-accounts: Don't disable the verify password entry
This completely breaks pressing <TAB> to get to the next control in the dialog, especially when immediately typing a password. https://bugzilla.gnome.org/show_bug.cgi?id=702476
This commit is contained in:
parent
af691e6122
commit
7b3746af23
2 changed files with 0 additions and 12 deletions
|
@ -276,7 +276,6 @@ update_password_strength (UmAccountDialog *self)
|
||||||
const gchar *username;
|
const gchar *username;
|
||||||
const gchar *hint;
|
const gchar *hint;
|
||||||
const gchar *long_hint;
|
const gchar *long_hint;
|
||||||
const gchar *verify;
|
|
||||||
const gchar *strength_hint;
|
const gchar *strength_hint;
|
||||||
gint strength_level;
|
gint strength_level;
|
||||||
|
|
||||||
|
@ -295,11 +294,6 @@ update_password_strength (UmAccountDialog *self)
|
||||||
gtk_label_set_label (GTK_LABEL (self->local_hint), long_hint);
|
gtk_label_set_label (GTK_LABEL (self->local_hint), long_hint);
|
||||||
gtk_level_bar_set_value (GTK_LEVEL_BAR (self->local_strength_indicator), strength_level);
|
gtk_level_bar_set_value (GTK_LEVEL_BAR (self->local_strength_indicator), strength_level);
|
||||||
|
|
||||||
verify = gtk_entry_get_text (GTK_ENTRY (self->local_verify));
|
|
||||||
if (strlen (verify) == 0) {
|
|
||||||
gtk_widget_set_sensitive (self->local_verify, strength_level > 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (strength_level > 0) {
|
if (strength_level > 0) {
|
||||||
set_entry_validation_checkmark (GTK_ENTRY (self->local_password));
|
set_entry_validation_checkmark (GTK_ENTRY (self->local_password));
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -71,7 +71,6 @@ update_password_strength (UmPasswordDialog *um)
|
||||||
gint strength_level;
|
gint strength_level;
|
||||||
const gchar *hint;
|
const gchar *hint;
|
||||||
const gchar *long_hint;
|
const gchar *long_hint;
|
||||||
const gchar *verify;
|
|
||||||
const gchar *strength_hint;
|
const gchar *strength_hint;
|
||||||
|
|
||||||
if (um->user == NULL) {
|
if (um->user == NULL) {
|
||||||
|
@ -95,11 +94,6 @@ update_password_strength (UmPasswordDialog *um)
|
||||||
gtk_label_set_label (GTK_LABEL (um->strength_indicator_label), strength_hint);
|
gtk_label_set_label (GTK_LABEL (um->strength_indicator_label), strength_hint);
|
||||||
gtk_label_set_label (GTK_LABEL (um->password_hint), long_hint);
|
gtk_label_set_label (GTK_LABEL (um->password_hint), long_hint);
|
||||||
|
|
||||||
verify = gtk_entry_get_text (GTK_ENTRY (um->verify_entry));
|
|
||||||
if (strlen (verify) == 0) {
|
|
||||||
gtk_widget_set_sensitive (um->verify_entry, strength_level > 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (strength_level > 0) {
|
if (strength_level > 0) {
|
||||||
set_entry_validation_checkmark (GTK_ENTRY (um->password_entry));
|
set_entry_validation_checkmark (GTK_ENTRY (um->password_entry));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue