Mercurial > pidgin
changeset 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 | e5e07c996c56 |
children | 4a1debda969d |
files | src/gtkdialogs.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkdialogs.c Sun Jun 11 06:05:09 2006 +0000 +++ b/src/gtkdialogs.c Sun Jun 11 19:05:45 2006 +0000 @@ -798,6 +798,16 @@ gaim_request_field_group_add_field(group, field); field = gaim_request_field_account_new("account", _("_Account"), NULL); + + /* gaim_request_field_account_new() only sets a default value if you're + * connected, and it sets it from the list of connected accounts. Since + * we're going to set show_all here, it makes sense to use the first + * account, not the first connected account. */ + if (gaim_accounts_get_all() != NULL) { + gaim_request_field_account_set_default_value(field, gaim_accounts_get_all()->data); + gaim_request_field_account_set_value(field, gaim_accounts_get_all()->data); + } + gaim_request_field_set_type_hint(field, "account"); gaim_request_field_account_set_show_all(field, TRUE); gaim_request_field_set_visible(field,