From b07127231e8343e0f41575fbbe473f570dd6c814 Mon Sep 17 00:00:00 2001 From: Sven Herzberg Date: Wed, 3 Dec 2008 13:15:39 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20562998=20=E2=80=93=20GtkFontButton=20docu?= =?UTF-8?q?mentation=20improvements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2008-12-03 Sven Herzberg Bug 562998 – GtkFontButton documentation improvements * gtk/gtkfontbutton.c: mention the way the font string should be used. Patch by Sven Herzberg and Nelson Benitez svn path=/trunk/; revision=21842 --- ChangeLog | 7 +++++++ gtk/gtkfontbutton.c | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3f4046b5e3..ec1e31664f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-12-03 Sven Herzberg + + Bug 562998 – GtkFontButton documentation improvements + + * gtk/gtkfontbutton.c: mention the way the font string should be used. + Patch by Sven Herzberg and Nelson Benitez + 2008-12-03 Marek Kasik Bug 559914 – eog doesn't apply paper setup. diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c index a4c6788cdb..362860254b 100644 --- a/gtk/gtkfontbutton.c +++ b/gtk/gtkfontbutton.c @@ -628,7 +628,12 @@ gtk_font_button_set_show_size (GtkFontButton *font_button, * gtk_font_button_get_font_name: * @font_button: a #GtkFontButton * - * Retrieves the name of the currently selected font. + * Retrieves the name of the currently selected font. This name includes + * style and size information as well. If you want to render something + * with the font, use this string with pango_font_description_from_string() . + * If you're interested in peeking certain values (family name, + * style, size, weight) just query these properties from the + * #PangoFontDescription object. * * Returns: an internal copy of the font name which must not be freed. *