Mercurial > pidgin
comparison src/status.c @ 10447:6feef0a9098a
[gaim-migrate @ 11712]
A few minor improvements and some documentation updates.
Conscious evolution in the back of your mind...
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 29 Dec 2004 21:53:59 +0000 |
parents | c9b1f3fac753 |
children | 6ec5da82ef41 |
comparison
equal
deleted
inserted
replaced
10446:904d03bfccce | 10447:6feef0a9098a |
---|---|
626 current_time, tmp); | 626 current_time, tmp); |
627 g_free(tmp); | 627 g_free(tmp); |
628 } | 628 } |
629 } | 629 } |
630 | 630 |
631 | |
632 | |
633 if (ops != NULL && ops->update != NULL) | 631 if (ops != NULL && ops->update != NULL) |
634 ops->update(gaim_get_blist(), (GaimBlistNode*)buddy); | 632 ops->update(gaim_get_blist(), (GaimBlistNode*)buddy); |
635 } | 633 } |
636 | 634 |
637 static void | 635 static void |
644 { | 642 { |
645 GaimAccount *account = gaim_presence_get_account(presence); | 643 GaimAccount *account = gaim_presence_get_account(presence); |
646 GaimAccountUiOps *ops = gaim_accounts_get_ui_ops(); | 644 GaimAccountUiOps *ops = gaim_accounts_get_ui_ops(); |
647 | 645 |
648 if (gaim_account_get_enabled(account, gaim_core_get_ui())) | 646 if (gaim_account_get_enabled(account, gaim_core_get_ui())) |
649 { | 647 gaim_prpl_change_account_status(account, old_status, new_status); |
650 GaimPluginProtocolInfo *prpl_info = NULL; | |
651 GaimPlugin *prpl; | |
652 | |
653 prpl = gaim_find_prpl(gaim_account_get_protocol_id(account)); | |
654 | |
655 if (prpl != NULL) | |
656 { | |
657 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(prpl); | |
658 | |
659 if (prpl_info != NULL && prpl_info->set_status != NULL) | |
660 prpl_info->set_status(account, new_status); | |
661 } | |
662 } | |
663 | 648 |
664 if (ops != NULL && ops->status_changed != NULL) | 649 if (ops != NULL && ops->status_changed != NULL) |
665 { | 650 { |
666 ops->status_changed(account, new_status); | 651 ops->status_changed(account, new_status); |
667 } | 652 } |