comparison src/account.c @ 10714:ad57a8b5495e

[gaim-migrate @ 12308] Some minor status changes. * Using the "enable?" checkbox in the account window will now sign on an account if it was offline. I'm starting to get a feel for how some of this stuff should work... * Signing on an account that doesn't support available messages no longer shows some warnings. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 21 Mar 2005 05:22:09 +0000
parents 6a618db0a404
children 0e017707532f
comparison
equal deleted inserted replaced
10713:7d4ca0d36f25 10714:ad57a8b5495e
989 void 989 void
990 gaim_account_set_status(GaimAccount *account, const char *status_id, 990 gaim_account_set_status(GaimAccount *account, const char *status_id,
991 gboolean active, ...) 991 gboolean active, ...)
992 { 992 {
993 GaimStatus *status; 993 GaimStatus *status;
994 GaimStatusType *status_type;
994 va_list args; 995 va_list args;
995 996
996 g_return_if_fail(account != NULL); 997 g_return_if_fail(account != NULL);
997 g_return_if_fail(status_id != NULL); 998 g_return_if_fail(status_id != NULL);
998 999
1008 } 1009 }
1009 1010
1010 va_start(args, active); 1011 va_start(args, active);
1011 gaim_status_set_active_with_attrs(status, active, args); 1012 gaim_status_set_active_with_attrs(status, active, args);
1012 va_end(args); 1013 va_end(args);
1014
1015 /*
1016 * If this account should be connected, but is not, then connect.
1017 */
1018 status_type = gaim_status_get_type(status);
1019 if (active &&
1020 (gaim_status_type_get_primitive(status_type) != GAIM_STATUS_OFFLINE) &&
1021 !gaim_account_is_connected(account))
1022 {
1023 gaim_account_connect(account, status);
1024 }
1013 } 1025 }
1014 1026
1015 void 1027 void
1016 gaim_account_clear_settings(GaimAccount *account) 1028 gaim_account_clear_settings(GaimAccount *account)
1017 { 1029 {