# HG changeset patch # User Eric Warmenhoven # Date 996693727 0 # Node ID dd3aa315519d9ba53e83bdbca85e5a1ce2e21fa9 # Parent a93aeb6f813de92f1d066f33f94904e541cb710c [gaim-migrate @ 2111] more NO_PASS stuff committer: Tailor Script diff -r a93aeb6f813d -r dd3aa315519d src/multi.c --- a/src/multi.c Wed Aug 01 19:11:42 2001 +0000 +++ b/src/multi.c Wed Aug 01 19:22:07 2001 +0000 @@ -369,8 +369,6 @@ GtkWidget *name; GtkWidget *pass; GtkWidget *rempass; - - struct prpl *p = NULL; vbox = gtk_vbox_new(FALSE, 5); gtk_container_set_border_width(GTK_CONTAINER(vbox), 5); @@ -418,17 +416,11 @@ gtk_entry_set_text(GTK_ENTRY(name), u->username); gtk_entry_set_text(GTK_ENTRY(pass), u->password); gtk_entry_set_editable(GTK_ENTRY(name), FALSE); - p = find_prpl(u->tmp_protocol); } else { tmpusr.name = name; tmpusr.pwdbox = pwdbox; tmpusr.pass = pass; tmpusr.rempass = rempass; - p = find_prpl(tmpusr.tmp_protocol); - } - if (p->options & OPT_PROTO_NO_PASSWORD) { - gtk_widget_hide(pwdbox); - gtk_widget_hide(rempass); } } @@ -468,6 +460,8 @@ GtkWidget *hbox; GtkWidget *button; + struct prpl *p; + if (!u && newmod) { gtk_widget_show(newmod); return; @@ -520,6 +514,20 @@ } gtk_widget_show_all(mod); + + if (u) { + p = find_prpl(u->tmp_protocol); + if (p->options & OPT_PROTO_NO_PASSWORD) { + gtk_widget_hide(u->pwdbox); + gtk_widget_hide(u->rempass); + } + } else { + p = find_prpl(tmpusr.tmp_protocol); + if (p->options & OPT_PROTO_NO_PASSWORD) { + gtk_widget_hide(tmpusr.pwdbox); + gtk_widget_hide(tmpusr.rempass); + } + } } static void add_acct(GtkWidget *w, gpointer d) @@ -636,7 +644,8 @@ row = (int)l->data; u = g_list_nth_data(aim_users, row); if (!u->gc) { - if (!u->password[0]) { + struct prpl *p = find_prpl(u->protocol); + if (p && !(p->options & OPT_PROTO_NO_PASSWORD) && !u->password[0]) { do_pass_dlg(u); } else { #ifdef USE_APPLET