Mercurial > pidgin
comparison src/gtkdialogs.c @ 13822:5ef7dae8ab87
[gaim-migrate @ 16257]
SF Patch #1504436 from roast, with changes by me
"gaim_gtkdialogs_log() doesn't set initial account
value, but shows an initial account. This is confusing
because if the user does not use the hint list to
select an account (e.g. he types a name in),
gaim_gtkdialogs_log_cb() services an empty call.
This patch fixes this."
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 11 Jun 2006 19:05:45 +0000 |
parents | 6e14740ea2a0 |
children | 88ccffe0875c |
comparison
equal
deleted
inserted
replaced
13821:e5e07c996c56 | 13822:5ef7dae8ab87 |
---|---|
796 gaim_request_field_set_type_hint(field, "screenname-all"); | 796 gaim_request_field_set_type_hint(field, "screenname-all"); |
797 gaim_request_field_set_required(field, TRUE); | 797 gaim_request_field_set_required(field, TRUE); |
798 gaim_request_field_group_add_field(group, field); | 798 gaim_request_field_group_add_field(group, field); |
799 | 799 |
800 field = gaim_request_field_account_new("account", _("_Account"), NULL); | 800 field = gaim_request_field_account_new("account", _("_Account"), NULL); |
801 | |
802 /* gaim_request_field_account_new() only sets a default value if you're | |
803 * connected, and it sets it from the list of connected accounts. Since | |
804 * we're going to set show_all here, it makes sense to use the first | |
805 * account, not the first connected account. */ | |
806 if (gaim_accounts_get_all() != NULL) { | |
807 gaim_request_field_account_set_default_value(field, gaim_accounts_get_all()->data); | |
808 gaim_request_field_account_set_value(field, gaim_accounts_get_all()->data); | |
809 } | |
810 | |
801 gaim_request_field_set_type_hint(field, "account"); | 811 gaim_request_field_set_type_hint(field, "account"); |
802 gaim_request_field_account_set_show_all(field, TRUE); | 812 gaim_request_field_account_set_show_all(field, TRUE); |
803 gaim_request_field_set_visible(field, | 813 gaim_request_field_set_visible(field, |
804 (gaim_accounts_get_all() != NULL && | 814 (gaim_accounts_get_all() != NULL && |
805 gaim_accounts_get_all()->next != NULL)); | 815 gaim_accounts_get_all()->next != NULL)); |