]> git.0d.be Git - empathy.git/commitdiff
add empathy_roster_contact_get_avatar_pixbuf()
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 5 Jul 2012 13:52:58 +0000 (15:52 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 9 Jul 2012 12:55:47 +0000 (14:55 +0200)
libempathy-gtk/empathy-roster-contact.c
libempathy-gtk/empathy-roster-contact.h

index ba498d289688b1dcc1df1d2f13c446f133a3e1ec..afb6de4faaab52e5b6a9ab46d9482bbb4eeeda7c 100644 (file)
@@ -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));
+}
index a488e942438ef0ba9fe5177426923b4c19f9ec15..7b87e76d46ff88cb52965e44f0c46068bc228386 100644 (file)
@@ -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__*/