Mercurial > pidgin.yaz
comparison src/status.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 | ad57a8b5495e |
children | 8a97b59f0071 |
comparison
equal
deleted
inserted
replaced
10737:b7f0bc436179 | 10738:55af3fa46329 |
---|---|
784 gaim_status_get_id(status)); | 784 gaim_status_get_id(status)); |
785 return; | 785 return; |
786 } | 786 } |
787 | 787 |
788 if (status->active != active) | 788 if (status->active != active) |
789 { | |
789 changed = TRUE; | 790 changed = TRUE; |
791 } | |
790 | 792 |
791 status->active = active; | 793 status->active = active; |
792 | 794 |
793 /* Set any attributes */ | 795 /* Set any attributes */ |
794 while ((id = va_arg(args, const char *)) != NULL) | 796 while ((id = va_arg(args, const char *)) != NULL) |
1270 gaim_debug_warning("status", | 1272 gaim_debug_warning("status", |
1271 "Attempted to set a non-independent status " | 1273 "Attempted to set a non-independent status " |
1272 "(%s) inactive. Only independent statuses " | 1274 "(%s) inactive. Only independent statuses " |
1273 "can be specifically marked inactive.", | 1275 "can be specifically marked inactive.", |
1274 status_id); | 1276 status_id); |
1275 | |
1276 return; | 1277 return; |
1277 } | 1278 } |
1278 | 1279 |
1279 } else if (presence->active_status != NULL) { | 1280 if (presence->active_status != NULL) |
1280 gaim_status_set_active(presence->active_status, FALSE); | 1281 gaim_status_set_active(presence->active_status, FALSE); |
1281 | 1282 presence->active_status = status; |
1282 } | 1283 } |
1283 | 1284 |
1284 gaim_status_set_active(status, active); | 1285 gaim_status_set_active(status, active); |
1285 presence->active_status = status; | |
1286 } | 1286 } |
1287 | 1287 |
1288 void | 1288 void |
1289 gaim_presence_switch_status(GaimPresence *presence, const char *status_id) | 1289 gaim_presence_switch_status(GaimPresence *presence, const char *status_id) |
1290 { | 1290 { |