| 242 manager = purple_credential_manager_get_default(); |
242 manager = purple_credential_manager_get_default(); |
| 243 purple_credential_manager_write_password_async(manager, account, password, |
243 purple_credential_manager_write_password_async(manager, account, password, |
| 244 NULL, NULL, NULL); |
244 NULL, NULL, NULL); |
| 245 |
245 |
| 246 /* It's necessary to enable the account first. */ |
246 /* It's necessary to enable the account first. */ |
| 247 purple_account_set_enabled(account, UI_ID, TRUE); |
247 purple_account_set_enabled(account, TRUE); |
| 248 |
248 |
| 249 /* Now, to connect the account(s), create a status and activate it. */ |
249 /* Now, to connect the account(s), create a status and activate it. */ |
| 250 status = purple_savedstatus_new(NULL, PURPLE_STATUS_AVAILABLE); |
250 status = purple_savedstatus_new(NULL, PURPLE_STATUS_AVAILABLE); |
| 251 purple_savedstatus_activate(status); |
251 purple_savedstatus_activate(status); |
| 252 |
252 |