Mercurial > pidgin
changeset 5689:7a619706e048
[gaim-migrate @ 6110]
Fixed a bug where the password box was still being shown for protocols that
don't support passwords (ugh! Why, MIT, why?!)
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 03 Jun 2003 05:47:29 +0000 |
parents | e43e1b8dca8b |
children | 08d20eb262c7 |
files | src/gtkaccount.c |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkaccount.c Tue Jun 03 05:33:46 2003 +0000 +++ b/src/gtkaccount.c Tue Jun 03 05:47:29 2003 +0000 @@ -89,6 +89,7 @@ /* Login Options */ GtkWidget *login_frame; GtkWidget *protocol_menu; + GtkWidget *password_box; GtkWidget *screenname_entry; GtkWidget *password_entry; GtkWidget *alias_entry; @@ -276,7 +277,8 @@ /* Password */ dialog->password_entry = gtk_entry_new(); gtk_entry_set_visibility(GTK_ENTRY(dialog->password_entry), FALSE); - __add_pref_box(dialog, vbox, _("Password:"), dialog->password_entry); + dialog->password_box = __add_pref_box(dialog, vbox, _("Password:"), + dialog->password_entry); /* Alias */ dialog->alias_entry = gtk_entry_new(); @@ -317,7 +319,7 @@ if (dialog->prpl_info != NULL && (dialog->prpl_info->options & OPT_PROTO_NO_PASSWORD)) { - gtk_widget_hide(dialog->password_entry); + gtk_widget_hide(dialog->password_box); gtk_widget_hide(dialog->remember_pass_check); } } @@ -413,8 +415,10 @@ gboolean bool_value; int int_value; - if (dialog->protocol_frame != NULL) + if (dialog->protocol_frame != NULL) { gtk_widget_destroy(dialog->protocol_frame); + dialog->protocol_frame = NULL; + } if (dialog->prpl_info == NULL || dialog->prpl_info->protocol_options == NULL) {