Mercurial > pidgin
comparison src/account.c @ 11067:2eca9ed49469
[gaim-migrate @ 13048]
Modified configure.ac so that it rejects dbus builds with the dbus
library older than 0.34
Added a simple object registration system to the dbus implementation
so that it is possible to query object properties remotely (eg. give
me property "name" of buddy with id = 5).
committer: Tailor Script <tailor@pidgin.im>
author | Piotr Zielinski <zielaj> |
---|---|
date | Thu, 07 Jul 2005 15:43:48 +0000 |
parents | da05145441ca |
children | 812b285aeccd |
comparison
equal
deleted
inserted
replaced
11066:2507d20c3d0b | 11067:2eca9ed49469 |
---|---|
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 */ | 24 */ |
25 #include "internal.h" | 25 #include "internal.h" |
26 #include "account.h" | 26 #include "account.h" |
27 #include "core.h" | 27 #include "core.h" |
28 #include "dbus-maybe.h" | |
28 #include "debug.h" | 29 #include "debug.h" |
29 #include "notify.h" | 30 #include "notify.h" |
30 #include "pounce.h" | 31 #include "pounce.h" |
31 #include "prefs.h" | 32 #include "prefs.h" |
32 #include "privacy.h" | 33 #include "privacy.h" |
699 if (prpl_info != NULL && prpl_info->status_types != NULL) | 700 if (prpl_info != NULL && prpl_info->status_types != NULL) |
700 gaim_account_set_status_types(account, prpl_info->status_types(account)); | 701 gaim_account_set_status_types(account, prpl_info->status_types(account)); |
701 | 702 |
702 gaim_presence_set_status_active(account->presence, "offline", TRUE); | 703 gaim_presence_set_status_active(account->presence, "offline", TRUE); |
703 | 704 |
705 GAIM_DBUS_REGISTER_POINTER(account, DBUS_POINTER_ACCOUNT); | |
704 return account; | 706 return account; |
705 } | 707 } |
706 | 708 |
707 void | 709 void |
708 gaim_account_destroy(GaimAccount *account) | 710 gaim_account_destroy(GaimAccount *account) |
740 gaim_presence_destroy(account->presence); | 742 gaim_presence_destroy(account->presence); |
741 | 743 |
742 if(account->system_log) | 744 if(account->system_log) |
743 gaim_log_free(account->system_log); | 745 gaim_log_free(account->system_log); |
744 | 746 |
747 GAIM_DBUS_UNREGISTER_POINTER(account); | |
745 g_free(account); | 748 g_free(account); |
746 } | 749 } |
747 | 750 |
748 void | 751 void |
749 gaim_account_register(GaimAccount *account) | 752 gaim_account_register(GaimAccount *account) |