Mercurial > pidgin.yaz
comparison plugins/gaim-remote/remote.c @ 10738:55af3fa46329
[gaim-migrate @ 12340]
Lots of changes here. A lot of it stems from chaning
gaim_account_connect() so that it DOES NOT have the GaimStatus
parameter. It will attempt to use the GaimStatus of your
account from the last time it was connected (which doesn't
work quite right yet).
My goal here was to save and load each account's GaimStatuses
to accounts.xml, so if you were "away" when you signed off then
you'll be "away" when you sign back on. Not quite there yet.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 26 Mar 2005 20:08:43 +0000 |
parents | e874feeb91e3 |
children | 50224ac8184d |
comparison
equal
deleted
inserted
replaced
10737:b7f0bc436179 | 10738:55af3fa46329 |
---|---|
390 if (!data) | 390 if (!data) |
391 return; | 391 return; |
392 memcpy(&id, data, sizeof(id)); | 392 memcpy(&id, data, sizeof(id)); |
393 account = g_list_nth_data(gaim_accounts_get_all(), id); | 393 account = g_list_nth_data(gaim_accounts_get_all(), id); |
394 if (account) | 394 if (account) |
395 /* XXX: someone might want to extend this to allow connecting with a different status */ | 395 gaim_account_connect(account); |
396 gaim_account_connect(account, gaim_account_get_status(account, "online")); | |
397 /* don't need to do anything here because the UI will get updates from other handlers */ | 396 /* don't need to do anything here because the UI will get updates from other handlers */ |
398 break; | 397 break; |
399 | 398 |
400 #if 0 /* STATUS */ | 399 #if 0 /* STATUS */ |
401 case CUI_USER_AWAY: | 400 case CUI_USER_AWAY: |