diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-07-05 21:52:58 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-07-09 20:55:47 +0800 |
commit | 276d529fb837238cba3f1f51ba47ec4ec45d90b9 (patch) | |
tree | ccea3c57a63a8df68a43299f4a3ee733517ef0c7 /libempathy-gtk | |
parent | 20c864a24dce1b0f2781ea1cbbf75ce3d8c34495 (diff) | |
download | gsoc2013-empathy-276d529fb837238cba3f1f51ba47ec4ec45d90b9.tar gsoc2013-empathy-276d529fb837238cba3f1f51ba47ec4ec45d90b9.tar.gz gsoc2013-empathy-276d529fb837238cba3f1f51ba47ec4ec45d90b9.tar.bz2 gsoc2013-empathy-276d529fb837238cba3f1f51ba47ec4ec45d90b9.tar.lz gsoc2013-empathy-276d529fb837238cba3f1f51ba47ec4ec45d90b9.tar.xz gsoc2013-empathy-276d529fb837238cba3f1f51ba47ec4ec45d90b9.tar.zst gsoc2013-empathy-276d529fb837238cba3f1f51ba47ec4ec45d90b9.zip |
add empathy_roster_contact_get_avatar_pixbuf()
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-roster-contact.c | 6 | ||||
-rw-r--r-- | libempathy-gtk/empathy-roster-contact.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-roster-contact.c b/libempathy-gtk/empathy-roster-contact.c index ba498d289..afb6de4fa 100644 --- a/libempathy-gtk/empathy-roster-contact.c +++ b/libempathy-gtk/empathy-roster-contact.c @@ -499,3 +499,9 @@ empathy_roster_contact_set_event_icon (EmpathyRosterContact *self, update_presence_icon (self); } + +GdkPixbuf * +empathy_roster_contact_get_avatar_pixbuf (EmpathyRosterContact *self) +{ + return gtk_image_get_pixbuf (GTK_IMAGE (self->priv->avatar)); +} diff --git a/libempathy-gtk/empathy-roster-contact.h b/libempathy-gtk/empathy-roster-contact.h index a488e9424..7b87e76d4 100644 --- a/libempathy-gtk/empathy-roster-contact.h +++ b/libempathy-gtk/empathy-roster-contact.h @@ -59,6 +59,9 @@ gboolean empathy_roster_contact_is_online (EmpathyRosterContact *self); void empathy_roster_contact_set_event_icon (EmpathyRosterContact *self, const gchar *icon); +GdkPixbuf * empathy_roster_contact_get_avatar_pixbuf ( + EmpathyRosterContact *self); + G_END_DECLS #endif /* #ifndef __EMPATHY_ROSTER_CONTACT_H__*/ |