[accounts-dialog] Incorporate some feedback on the new password dialog



commit 7bbdb5f02ac8b3f72f3ce6d8b94a9479b6b30bcf
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Mar 2 22:08:23 2010 -0500

    Incorporate some feedback on the new password dialog
    
    Use better wording for regenerating passwords, and make the entry
    visible when inserting a generated password.

 src/um-password-dialog.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/um-password-dialog.c b/src/um-password-dialog.c
index 18bc5f4..96ad719 100644
--- a/src/um-password-dialog.c
+++ b/src/um-password-dialog.c
@@ -107,6 +107,7 @@ activate_password_item (GtkMenuItem      *item,
         password = gtk_menu_item_get_label (item);
 
         gtk_entry_set_text (GTK_ENTRY (um->password_entry), password);
+        gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (um->show_password_button), TRUE);
 }
 
 static void generate_passwords (UmPasswordDialog *um);
@@ -183,7 +184,7 @@ generate_passwords (UmPasswordDialog *um)
         gtk_widget_show (item);
         gtk_menu_shell_append (GTK_MENU_SHELL (um->generate_menu), item);
 
-        item = gtk_menu_item_new_with_label (_("Regenerate passwords"));
+        item = gtk_menu_item_new_with_label (_("More choices..."));
         g_signal_connect (item, "activate",
                           G_CALLBACK (activate_generate_item), um);
         gtk_widget_show (item);
@@ -446,7 +447,6 @@ show_password_toggled (GtkToggleButton  *button,
         active = gtk_toggle_button_get_active (button);
         gtk_entry_set_visibility (GTK_ENTRY (um->password_entry), active);
         gtk_entry_set_visibility (GTK_ENTRY (um->verify_entry), active);
-        gtk_widget_set_sensitive (GTK_WIDGET (um->verify_entry), !active);
 }
 
 static void
@@ -769,6 +769,7 @@ um_password_dialog_set_user (UmPasswordDialog *um,
                 gtk_entry_set_text (GTK_ENTRY (um->verify_entry), "");
                 gtk_entry_set_text (GTK_ENTRY (um->normal_hint_entry), "");
                 gtk_entry_set_text (GTK_ENTRY (um->old_password_entry), "");
+                gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (um->show_password_button), FALSE);
                 if (um_user_get_uid (um->user) == getuid()) {
                         gtk_widget_show (um->old_password_label);
                         gtk_widget_show (um->old_password_entry);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]