From: <rl...@us...> - 2006-06-11 19:05:49
|
Revision: 16257 Author: rlaager Date: 2006-06-11 12:05:45 -0700 (Sun, 11 Jun 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16257&view=rev Log Message: ----------- 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." Modified Paths: -------------- trunk/src/gtkdialogs.c Modified: trunk/src/gtkdialogs.c =================================================================== --- trunk/src/gtkdialogs.c 2006-06-11 17:50:47 UTC (rev 16256) +++ trunk/src/gtkdialogs.c 2006-06-11 19:05:45 UTC (rev 16257) @@ -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, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |