]> git.0d.be Git - empathy.git/commitdiff
Add documentation for EmpathyProfileChooser.
authorJonny Lamb <jonny.lamb@collabora.co.uk>
Thu, 23 Apr 2009 00:02:46 +0000 (01:02 +0100)
committerJonny Lamb <jonny.lamb@collabora.co.uk>
Thu, 23 Apr 2009 00:02:46 +0000 (01:02 +0100)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
libempathy-gtk/empathy-profile-chooser.c

index 897e38344fbdd358f1ee3705cfbac6c4a19b1e90..4959561698fd80d5ce1d7c08c3c748ccaa210704 100644 (file)
 #include "empathy-profile-chooser.h"
 #include "empathy-ui-utils.h"
 
+/**
+ * SECTION:empathy-profile-chooser
+ * @title: EmpathyProfileChooser
+ * @short_description: A widget used to choose from a list of profiles
+ * @include: libempathy-gtk/empathy-account-chooser.h
+ *
+ * #EmpathyProfileChooser is a widget which provides a chooser of available
+ * profiles.
+ */
+
 enum {
        COL_ICON,
        COL_LABEL,
@@ -37,6 +47,14 @@ enum {
        COL_COUNT
 };
 
+/**
+ * empathy_profile_chooser_dup_selected:
+ * @widget: an #EmpathyProfileChooser
+ *
+ * Returns a new reference to the selected #McProfile in @widget.
+ *
+ * Return value: a new reference to the selected #McProfile
+ */
 McProfile*
 empathy_profile_chooser_dup_selected (GtkWidget *widget)
 {
@@ -54,6 +72,14 @@ empathy_profile_chooser_dup_selected (GtkWidget *widget)
        return profile;
 }
 
+/**
+ * empathy_profile_chooser_n_profiles:
+ * @widget: an #EmpathyProfileChooser
+ *
+ * Returns the number of profiles in @widget.
+ *
+ * Return value: the number of profiles in @widget
+ */
 gint
 empathy_profile_chooser_n_profiles (GtkWidget *widget)
 {
@@ -115,6 +141,13 @@ profile_chooser_sort_func (GtkTreeModel *model,
        return cmp;
 }
 
+/**
+ * empathy_profile_chooser_new:
+ *
+ * Creates a new #EmpathyProfileChooser widget.
+ *
+ * Return value: a new #EmpathyProfileChooser widget
+ */
 GtkWidget *
 empathy_profile_chooser_new (void)
 {