From bd603ce6e5945ed1d06e550c928fc2ed21da3d88 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 16 Jul 2008 16:45:29 +0200 Subject: Add initial adium theme support: Load the template and append messages. --- libempathy/empathy-contact.c | 12 ++++++++++++ libempathy/empathy-contact.h | 1 + 2 files changed, 13 insertions(+) (limited to 'libempathy') 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 ()) -- cgit v1.2.3