[empathy] add empathy_roster_contact_get_avatar_pixbuf()
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] add empathy_roster_contact_get_avatar_pixbuf()
- Date: Mon, 9 Jul 2012 12:56:58 +0000 (UTC)
commit 276d529fb837238cba3f1f51ba47ec4ec45d90b9
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Jul 5 15:52:58 2012 +0200
add empathy_roster_contact_get_avatar_pixbuf()
libempathy-gtk/empathy-roster-contact.c | 6 ++++++
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 ba498d2..afb6de4 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 a488e94..7b87e76 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__*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]