diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-06-26 21:42:42 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-07-01 21:19:40 +0800 |
commit | 370bb92f2ce8ccd70bd694a6ab4ba78abeb448f9 (patch) | |
tree | a1414c86d4b3e95265aa974b51efe0bb72db80ad /libempathy/empathy-contact.c | |
parent | b2691907925acca067dcaa8492619581bcc83480 (diff) | |
download | gsoc2013-empathy-370bb92f2ce8ccd70bd694a6ab4ba78abeb448f9.tar gsoc2013-empathy-370bb92f2ce8ccd70bd694a6ab4ba78abeb448f9.tar.gz gsoc2013-empathy-370bb92f2ce8ccd70bd694a6ab4ba78abeb448f9.tar.bz2 gsoc2013-empathy-370bb92f2ce8ccd70bd694a6ab4ba78abeb448f9.tar.lz gsoc2013-empathy-370bb92f2ce8ccd70bd694a6ab4ba78abeb448f9.tar.xz gsoc2013-empathy-370bb92f2ce8ccd70bd694a6ab4ba78abeb448f9.tar.zst gsoc2013-empathy-370bb92f2ce8ccd70bd694a6ab4ba78abeb448f9.zip |
Port libempathy to EmpathyAccount
Diffstat (limited to 'libempathy/empathy-contact.c')
-rw-r--r-- | libempathy/empathy-contact.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c index bad6ef470..d351aecbc 100644 --- a/libempathy/empathy-contact.c +++ b/libempathy/empathy-contact.c @@ -39,7 +39,7 @@ #define GET_PRIV(obj) EMPATHY_GET_PRIV (obj, EmpathyContact) typedef struct { TpContact *tp_contact; - McAccount *account; + EmpathyAccount *account; gchar *id; gchar *name; EmpathyAvatar *avatar; @@ -159,7 +159,7 @@ empathy_contact_class_init (EmpathyContactClass *class) g_param_spec_object ("account", "The account", "The account associated with the contact", - MC_TYPE_ACCOUNT, + EMPATHY_TYPE_ACCOUNT, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, @@ -409,12 +409,11 @@ empathy_contact_new (TpContact *tp_contact) } EmpathyContact * -empathy_contact_new_for_log (McAccount *account, +empathy_contact_new_for_log (EmpathyAccount *account, const gchar *id, const gchar *name, gboolean is_user) { - g_return_val_if_fail (MC_IS_ACCOUNT (account), NULL); g_return_val_if_fail (id != NULL, NULL); return g_object_new (EMPATHY_TYPE_CONTACT, @@ -554,7 +553,7 @@ empathy_contact_set_avatar (EmpathyContact *contact, g_object_notify (G_OBJECT (contact), "avatar"); } -McAccount * +EmpathyAccount * empathy_contact_get_account (EmpathyContact *contact) { EmpathyContactPriv *priv; @@ -830,7 +829,7 @@ static gchar * contact_get_avatar_filename (EmpathyContact *contact, const gchar *token) { - McAccount *account; + EmpathyAccount *account; gchar *avatar_path; gchar *avatar_file; gchar *token_escaped; @@ -847,7 +846,7 @@ contact_get_avatar_filename (EmpathyContact *contact, avatar_path = g_build_filename (g_get_user_cache_dir (), PACKAGE_NAME, "avatars", - mc_account_get_unique_name (account), + empathy_account_get_unique_name (account), contact_escaped, NULL); g_mkdir_with_parents (avatar_path, 0700); |