aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2008-07-16 22:45:29 +0800
committerXavier Claessens <xclaesse@gmail.com>2009-06-12 00:06:28 +0800
commitbd603ce6e5945ed1d06e550c928fc2ed21da3d88 (patch)
treee2166ed0ca934d030e0bc6f9f66b9caac31349b0 /libempathy
parent8ae92f733e7177326ca24b80307b4c3ffcde94d5 (diff)
downloadgsoc2013-empathy-bd603ce6e5945ed1d06e550c928fc2ed21da3d88.tar
gsoc2013-empathy-bd603ce6e5945ed1d06e550c928fc2ed21da3d88.tar.gz
gsoc2013-empathy-bd603ce6e5945ed1d06e550c928fc2ed21da3d88.tar.bz2
gsoc2013-empathy-bd603ce6e5945ed1d06e550c928fc2ed21da3d88.tar.lz
gsoc2013-empathy-bd603ce6e5945ed1d06e550c928fc2ed21da3d88.tar.xz
gsoc2013-empathy-bd603ce6e5945ed1d06e550c928fc2ed21da3d88.tar.zst
gsoc2013-empathy-bd603ce6e5945ed1d06e550c928fc2ed21da3d88.zip
Add initial adium theme support: Load the template and append messages.
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-contact.c12
-rw-r--r--libempathy/empathy-contact.h1
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 ())