comparison src/account.c @ 11146:1c5398ccbeb0

[gaim-migrate @ 13217] Gaim-DBUS signal export works with DBUS >= 0.35 Various gaim API functions available through DBUS committer: Tailor Script <tailor@pidgin.im>
author Piotr Zielinski <zielaj>
date Fri, 22 Jul 2005 19:47:29 +0000
parents 75be3005640e
children e5aa4398003e
comparison
equal deleted inserted replaced
11145:dbc518c453f2 11146:1c5398ccbeb0
664 664
665 if (account != NULL) 665 if (account != NULL)
666 return account; 666 return account;
667 667
668 account = g_new0(GaimAccount, 1); 668 account = g_new0(GaimAccount, 1);
669 GAIM_DBUS_REGISTER_POINTER(account, GaimAccount);
669 670
670 gaim_account_set_username(account, username); 671 gaim_account_set_username(account, username);
671 672
672 gaim_account_set_protocol_id(account, protocol_id); 673 gaim_account_set_protocol_id(account, protocol_id);
673 674
691 if (prpl_info != NULL && prpl_info->status_types != NULL) 692 if (prpl_info != NULL && prpl_info->status_types != NULL)
692 gaim_account_set_status_types(account, prpl_info->status_types(account)); 693 gaim_account_set_status_types(account, prpl_info->status_types(account));
693 694
694 gaim_presence_set_status_active(account->presence, "offline", TRUE); 695 gaim_presence_set_status_active(account->presence, "offline", TRUE);
695 696
696 GAIM_DBUS_REGISTER_POINTER(account, DBUS_POINTER_ACCOUNT);
697 return account; 697 return account;
698 } 698 }
699 699
700 void 700 void
701 gaim_account_destroy(GaimAccount *account) 701 gaim_account_destroy(GaimAccount *account)