# HG changeset patch # User Christian Hammond # Date 1054619249 0 # Node ID 7a619706e04820cd94fc585b8d21285d86cc56e1 # Parent e43e1b8dca8b74f3241f03b652d796c8220232a5 [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 diff -r e43e1b8dca8b -r 7a619706e048 src/gtkaccount.c --- 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) {