aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-avatar-image.c
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-04-23 07:52:08 +0800
committerJonny Lamb <jonny.lamb@collabora.co.uk>2009-04-23 07:52:08 +0800
commit0913854d6a7d78e60a0d08897d6ba45140fd5237 (patch)
tree6e1e60fc6cd661f9392fe8d63e941b6579886b9e /libempathy-gtk/empathy-avatar-image.c
parent3b01b7ca985d788eca42749fd7a63c970b7ecde2 (diff)
downloadgsoc2013-empathy-0913854d6a7d78e60a0d08897d6ba45140fd5237.tar
gsoc2013-empathy-0913854d6a7d78e60a0d08897d6ba45140fd5237.tar.gz
gsoc2013-empathy-0913854d6a7d78e60a0d08897d6ba45140fd5237.tar.bz2
gsoc2013-empathy-0913854d6a7d78e60a0d08897d6ba45140fd5237.tar.lz
gsoc2013-empathy-0913854d6a7d78e60a0d08897d6ba45140fd5237.tar.xz
gsoc2013-empathy-0913854d6a7d78e60a0d08897d6ba45140fd5237.tar.zst
gsoc2013-empathy-0913854d6a7d78e60a0d08897d6ba45140fd5237.zip
Add documentation for EmpathyAvatarImage.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'libempathy-gtk/empathy-avatar-image.c')
-rw-r--r--libempathy-gtk/empathy-avatar-image.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-avatar-image.c b/libempathy-gtk/empathy-avatar-image.c
index 51f30bdd5..e5513231b 100644
--- a/libempathy-gtk/empathy-avatar-image.c
+++ b/libempathy-gtk/empathy-avatar-image.c
@@ -33,6 +33,22 @@
#include "empathy-avatar-image.h"
#include "empathy-ui-utils.h"
+/**
+ * SECTION:empathy-avatar-image
+ * @title: EmpathyAvatarImage
+ * @short_description: A widget to display an avatar
+ * @include: libempathy-gtk/empathy-avatar-image.h
+ *
+ * #EmpathyAvatarImage is a widget which displays an avatar.
+ */
+
+/**
+ * EmpathyAvatarImage:
+ * @parent: parent object
+ *
+ * Widget which displays an avatar.
+ */
+
#define MAX_SMALL 64
#define MAX_LARGE 400
@@ -251,6 +267,13 @@ avatar_image_button_release_event (GtkWidget *widget, GdkEventButton *event)
return TRUE;
}
+/**
+ * empathy_avatar_image_new:
+ *
+ * Creates a new #EmpathyAvatarImage.
+ *
+ * Return value: a new #EmpathyAvatarImage
+ */
GtkWidget *
empathy_avatar_image_new (void)
{
@@ -261,6 +284,13 @@ empathy_avatar_image_new (void)
return GTK_WIDGET (avatar_image);
}
+/**
+ * empathy_avatar_image_set:
+ * @avatar_image: an #EmpathyAvatarImage
+ * @avatar: the #EmpathyAvatar to set @avatar_image to
+ *
+ * Sets @avatar_image to display the avatar indicated by @avatar.
+ */
void
empathy_avatar_image_set (EmpathyAvatarImage *avatar_image,
EmpathyAvatar *avatar)