Mercurial > pidgin.yaz
comparison src/gtkaccount.c @ 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 |
comparison
equal
deleted
inserted
replaced
5688:e43e1b8dca8b | 5689:7a619706e048 |
---|---|
87 GtkWidget *bottom_vbox; | 87 GtkWidget *bottom_vbox; |
88 | 88 |
89 /* Login Options */ | 89 /* Login Options */ |
90 GtkWidget *login_frame; | 90 GtkWidget *login_frame; |
91 GtkWidget *protocol_menu; | 91 GtkWidget *protocol_menu; |
92 GtkWidget *password_box; | |
92 GtkWidget *screenname_entry; | 93 GtkWidget *screenname_entry; |
93 GtkWidget *password_entry; | 94 GtkWidget *password_entry; |
94 GtkWidget *alias_entry; | 95 GtkWidget *alias_entry; |
95 GtkWidget *remember_pass_check; | 96 GtkWidget *remember_pass_check; |
96 GtkWidget *auto_login_check; | 97 GtkWidget *auto_login_check; |
274 g_list_free(split_entries); | 275 g_list_free(split_entries); |
275 | 276 |
276 /* Password */ | 277 /* Password */ |
277 dialog->password_entry = gtk_entry_new(); | 278 dialog->password_entry = gtk_entry_new(); |
278 gtk_entry_set_visibility(GTK_ENTRY(dialog->password_entry), FALSE); | 279 gtk_entry_set_visibility(GTK_ENTRY(dialog->password_entry), FALSE); |
279 __add_pref_box(dialog, vbox, _("Password:"), dialog->password_entry); | 280 dialog->password_box = __add_pref_box(dialog, vbox, _("Password:"), |
281 dialog->password_entry); | |
280 | 282 |
281 /* Alias */ | 283 /* Alias */ |
282 dialog->alias_entry = gtk_entry_new(); | 284 dialog->alias_entry = gtk_entry_new(); |
283 __add_pref_box(dialog, vbox, _("Alias:"), dialog->alias_entry); | 285 __add_pref_box(dialog, vbox, _("Alias:"), dialog->alias_entry); |
284 | 286 |
315 } | 317 } |
316 | 318 |
317 if (dialog->prpl_info != NULL && | 319 if (dialog->prpl_info != NULL && |
318 (dialog->prpl_info->options & OPT_PROTO_NO_PASSWORD)) { | 320 (dialog->prpl_info->options & OPT_PROTO_NO_PASSWORD)) { |
319 | 321 |
320 gtk_widget_hide(dialog->password_entry); | 322 gtk_widget_hide(dialog->password_box); |
321 gtk_widget_hide(dialog->remember_pass_check); | 323 gtk_widget_hide(dialog->remember_pass_check); |
322 } | 324 } |
323 } | 325 } |
324 | 326 |
325 static void | 327 static void |
411 char *title; | 413 char *title; |
412 const char *str_value; | 414 const char *str_value; |
413 gboolean bool_value; | 415 gboolean bool_value; |
414 int int_value; | 416 int int_value; |
415 | 417 |
416 if (dialog->protocol_frame != NULL) | 418 if (dialog->protocol_frame != NULL) { |
417 gtk_widget_destroy(dialog->protocol_frame); | 419 gtk_widget_destroy(dialog->protocol_frame); |
420 dialog->protocol_frame = NULL; | |
421 } | |
418 | 422 |
419 if (dialog->prpl_info == NULL || | 423 if (dialog->prpl_info == NULL || |
420 dialog->prpl_info->protocol_options == NULL) { | 424 dialog->prpl_info->protocol_options == NULL) { |
421 | 425 |
422 return; | 426 return; |