Mercurial > pidgin
comparison src/status.c @ 10052:eaec201b2688
[gaim-migrate @ 11013]
More rockin status stuff from Dave West!
Things are beginning to shape up quite well.
Dave, again, sorry it took me a week to get to this. Girl waits for no man.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Sun, 19 Sep 2004 21:19:55 +0000 |
| parents | 81059dce3aed |
| children | b566449d45f8 |
comparison
equal
deleted
inserted
replaced
| 10051:0810288958ad | 10052:eaec201b2688 |
|---|---|
| 619 | 619 |
| 620 status_type = gaim_status_get_type(status); | 620 status_type = gaim_status_get_type(status); |
| 621 | 621 |
| 622 if (!active && !gaim_status_type_is_independent(status_type)) | 622 if (!active && !gaim_status_type_is_independent(status_type)) |
| 623 { | 623 { |
| 624 gaim_debug(GAIM_DEBUG_ERROR, "status", | 624 gaim_debug_error("status", |
| 625 "Cannot deactivate an exclusive status (%s).\n", | 625 "Cannot deactivate an exclusive status (%s).\n", |
| 626 gaim_status_type_get_id(status_type)); | 626 gaim_status_type_get_id(status_type)); |
| 627 return; | 627 return; |
| 628 } | 628 } |
| 629 | 629 |
| 1097 status_id); | 1097 status_id); |
| 1098 | 1098 |
| 1099 return; | 1099 return; |
| 1100 } | 1100 } |
| 1101 | 1101 |
| 1102 if (presence->active_status != NULL) | 1102 } else if (presence->active_status != NULL) { |
| 1103 gaim_status_set_active(presence->active_status, FALSE); | 1103 gaim_status_set_active(presence->active_status, FALSE); |
| 1104 | 1104 |
| 1105 presence->active_status = status; | |
| 1106 } | 1105 } |
| 1107 | 1106 |
| 1108 gaim_status_set_active(status, active); | 1107 gaim_status_set_active(status, active); |
| 1108 presence->active_status = status; | |
| 1109 } | 1109 } |
| 1110 | 1110 |
| 1111 void | 1111 void |
| 1112 gaim_presence_switch_status(GaimPresence *presence, const char *status_id) | 1112 gaim_presence_switch_status(GaimPresence *presence, const char *status_id) |
| 1113 { | 1113 { |
