[goffice] Fonts: add docs.



commit 912b20346bccec985259712b733a9933a4482d48
Author: Morten Welinder <terra gnome org>
Date:   Mon Feb 16 17:49:24 2015 -0500

    Fonts: add docs.

 goffice/utils/go-style.c |   22 +++++++++++++++-------
 1 files changed, 15 insertions(+), 7 deletions(-)
---
diff --git a/goffice/utils/go-style.c b/goffice/utils/go-style.c
index 4aaedb1..5ad7736 100644
--- a/goffice/utils/go-style.c
+++ b/goffice/utils/go-style.c
@@ -1991,20 +1991,28 @@ go_style_get_marker (GOStyle const *style)
        return style->marker.mark;
 }
 
+/**
+ * go_style_set_font:
+ * @style: #GOStyle
+ * @desc: (transfer full): new font description to use
+ *
+ * Set text font used by the style.
+ **/
 void
 go_style_set_font_desc (GOStyle *style, PangoFontDescription *desc)
 {
-       GOFont const *font;
-
        g_return_if_fail (GO_IS_STYLE (style));
 
-       font = go_font_new_by_desc (desc);
-       if (font != NULL) {
-               go_font_unref (style->font.font);
-               style->font.font = font;
-       }
+       go_style_set_font (go_font_new_by_desc (desc));
 }
 
+/**
+ * go_style_set_font:
+ * @style: #GOStyle
+ * @font: (transfer full): new font
+ *
+ * Set text font used by the style.
+ **/
 void
 go_style_set_font (GOStyle *style, GOFont const *font)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]