diff options
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-contact.c | 12 | ||||
-rw-r--r-- | libempathy/empathy-contact.h | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c index 01087c19d..6800c8e30 100644 --- a/libempathy/empathy-contact.c +++ b/libempathy/empathy-contact.c @@ -938,6 +938,18 @@ empathy_contact_load_avatar_cache (EmpathyContact *contact, return data != NULL; } +gchar * +empathy_contact_get_avatar_filename (EmpathyContact *contact) +{ + EmpathyContactPriv *priv = GET_PRIV (contact); + + if (priv->avatar) + return contact_get_avatar_filename (contact, priv->avatar->token); + + return NULL; +} + + GType empathy_avatar_get_type (void) { diff --git a/libempathy/empathy-contact.h b/libempathy/empathy-contact.h index ff8d426e2..0d02dabc2 100644 --- a/libempathy/empathy-contact.h +++ b/libempathy/empathy-contact.h @@ -107,6 +107,7 @@ void empathy_contact_load_avatar_data (EmpathyContact *contact, const gchar *token); gboolean empathy_contact_load_avatar_cache (EmpathyContact *contact, const gchar *token); +gchar * empathy_contact_get_avatar_filename (EmpathyContact *contact); #define EMPATHY_TYPE_AVATAR (empathy_avatar_get_type ()) |