Document some functions. sadrul.gtkblist-theme

Fri, 17 Apr 2009 19:34:00 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Fri, 17 Apr 2009 19:34:00 +0000
branch
sadrul.gtkblist-theme
changeset 26804
76e82d14bbc7
parent 26803
d48e945e622f
child 26805
30a7f19d9567

Document some functions.

pidgin/gtkblist-theme.c file | annotate | diff | comparison | revisions
pidgin/gtkblist-theme.h file | annotate | diff | comparison | revisions
--- a/pidgin/gtkblist-theme.c	Fri Apr 17 19:28:20 2009 +0000
+++ b/pidgin/gtkblist-theme.c	Fri Apr 17 19:34:00 2009 +0000
@@ -101,7 +101,7 @@
  *****************************************************************************/
 
 PidginThemeFont *
-pidgin_theme_font_new(const char *face, GdkColor *color)
+pidgin_theme_font_new(const gchar *face, GdkColor *color)
 {
 	PidginThemeFont *font = g_new0(PidginThemeFont, 1);
 	font->font = g_strdup(face);
--- a/pidgin/gtkblist-theme.h	Fri Apr 17 19:28:20 2009 +0000
+++ b/pidgin/gtkblist-theme.h	Fri Apr 17 19:34:00 2009 +0000
@@ -84,7 +84,15 @@
 /** @name PidginThemeFont API                                               */
 /**************************************************************************/
 
-PidginThemeFont * pidgin_theme_font_new(const char *face, GdkColor *color);
+/**
+ * Create a new PidginThemeFont.
+ *
+ * @param face  The font face
+ * @param color The color of the font
+ *
+ * @return A newly created PidginThemeFont
+ */
+PidginThemeFont * pidgin_theme_font_new(const gchar *face, GdkColor *color);
 
 /**
  * Frees a font and color pair
@@ -93,14 +101,47 @@
  */
 void pidgin_theme_font_free(PidginThemeFont *font);
 
+/**
+ * Set the font-face of a PidginThemeFont.
+ *
+ * @param font  The PidginThemeFont
+ * @param face  The font-face
+ */
 void pidgin_theme_font_set_font_face(PidginThemeFont *font, const gchar *face);
 
+/**
+ * Set the color of a PidginThemeFont.
+ *
+ * @param font  The PidginThemeFont
+ * @param color The color
+ */
 void pidgin_theme_font_set_color(PidginThemeFont *font, const GdkColor *color);
 
+/**
+ * Get the font-face of a PidginThemeFont.
+ *
+ * @param font  The PidginThemeFont
+ *
+ * @return The font-face
+ */
 const gchar * pidgin_theme_font_get_font_face(PidginThemeFont *font);
 
+/**
+ * Get the color of a PidginThemeFont as a GdkColor object.
+ *
+ * @param font  The PidginThemeFont
+ *
+ * @return The color
+ */
 const GdkColor * pidgin_theme_font_get_color(PidginThemeFont *font);
 
+/**
+ * Get the color of a PidginThemeFont.
+ *
+ * @param font  The PidginThemeFont
+ *
+ * @return The color
+ */
 const gchar * pidgin_theme_font_get_color_describe(PidginThemeFont *font);
 
 /**************************************************************************/

mercurial