pidgin/ljfisher-ssl-client-auth

Parents 9ac58f35c12d
Children 4cfd8ccc84d4
Bugfix: after checking and un-checking registration box in account setup dialog with username empty and login_label active, OK button was still active
--- a/pidgin/gtkaccount.c Thu Jul 05 19:25:53 2012 +0200
+++ b/pidgin/gtkaccount.c Sun Jul 08 12:36:02 2012 +0200
@@ -344,9 +344,11 @@
(dialog->prpl_info->options & OPT_PROTO_REGISTER_NOSCREENNAME));
int register_noscreenname = (opt_noscreenname && register_checked);
+ // get rid of login_label in username field
+ username_focus_cb(dialog->username_entry, NULL, dialog);
+
if (register_noscreenname) {
gtk_entry_set_text(GTK_ENTRY(dialog->username_entry), "");
- username_nofocus_cb(dialog->username_entry, NULL, dialog);
gtk_entry_set_text(GTK_ENTRY(dialog->password_entry), "");
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(dialog->remember_pass_check), FALSE);
}
@@ -360,6 +362,8 @@
*gtk_entry_get_text(GTK_ENTRY(dialog->username_entry))
!= '\0');
}
+
+ username_nofocus_cb(dialog->username_entry, NULL, dialog);
}
static void