diff --git a/src/client/dialogs/password-dialog.vala b/src/client/dialogs/password-dialog.vala index 57a527d7..4ee5703f 100644 --- a/src/client/dialogs/password-dialog.vala +++ b/src/client/dialogs/password-dialog.vala @@ -54,12 +54,7 @@ public class PasswordDialog { if (smtp) label_smtp.show(); - Gtk.Button cancel_button = new Gtk.Button.from_stock(Stock._CANCEL); - ok_button = new Gtk.Button.from_stock(Stock._OK); - ok_button.can_default = true; - dialog.add_action_widget(cancel_button, Gtk.ResponseType.CANCEL); - dialog.add_action_widget(ok_button, Gtk.ResponseType.OK); - dialog.set_default_response(Gtk.ResponseType.OK); + ok_button = (Gtk.Button) builder.get_object("authenticate_button"); refresh_ok_button_sensitivity(); entry_password.changed.connect(refresh_ok_button_sensitivity); diff --git a/ui/password-dialog.glade b/ui/password-dialog.glade index 131f0659..7b6a0f60 100644 --- a/ui/password-dialog.glade +++ b/ui/password-dialog.glade @@ -1,11 +1,12 @@ - + - + False 6 False + True dialog False @@ -49,6 +50,8 @@ 0 (set in password-dialog.vala) True + True + word-char False @@ -61,11 +64,12 @@ True False 6 - 12 + 6 - False False + True + 4 0 SMTP Credentials @@ -83,9 +87,11 @@ True False - 0 - 6 - Username: + 1 + Username + 0 @@ -98,9 +104,11 @@ True False - 0 - 6 - Password: + 1 + Password + 0 @@ -114,7 +122,7 @@ True False 0 - 2 + (set in password-dialog.vala) 1 @@ -139,6 +147,24 @@ 1 + + + _Remember password + True + True + False + end + True + 0.5 + True + + + 0 + 3 + 2 + 1 + + False @@ -146,23 +172,6 @@ 2 - - - _Remember password - True - True - False - end - True - 0 - True - - - False - True - 3 - - True @@ -180,12 +189,39 @@ False + end end - + + _Cancel + True + True + False + True + + + False + True + 0 + - + + _Authenticate + True + True + True + True + True + + + + False + True + 1 + @@ -197,5 +233,9 @@ + + cancel_button + authenticate_button +