diff options
author | Ross Burton <ross@burtonini.com> | 2006-02-09 17:53:46 +0000 |
---|---|---|
committer | Ross Burton <rburton@src.gnome.org> | 2006-02-09 17:53:46 +0000 |
commit | f8271bdc1e09294d9f211125d43bb3de03cd18c7 (patch) | |
tree | 197cde4c0ca2a13fb867ad83d2ba6ebd6a16b679 /gtk/gtkfontbutton.c | |
parent | 4cbef86980dc4a5a30133002d5b2ddcf6e175b0e (diff) | |
download | gtk+-f8271bdc1e09294d9f211125d43bb3de03cd18c7.tar.gz |
Work out the font size in floating point, and display the font size with
2006-02-09 Ross Burton <ross@burtonini.com>
* gtk/gtkfontbutton.c:
Work out the font size in floating point, and display the font
size with %g instead of %d (#317590)
Diffstat (limited to 'gtk/gtkfontbutton.c')
-rw-r--r-- | gtk/gtkfontbutton.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c index a0c6802a70..9f8a11bdb9 100644 --- a/gtk/gtkfontbutton.c +++ b/gtk/gtkfontbutton.c @@ -918,8 +918,8 @@ gtk_font_button_update_font_info (GtkFontButton *font_button) if (font_button->priv->show_size) { - gchar *size = g_strdup_printf ("%d", - pango_font_description_get_size (desc) / PANGO_SCALE); + gchar *size = g_strdup_printf ("%g", + pango_font_description_get_size (desc) / (double)PANGO_SCALE); gtk_label_set_text (GTK_LABEL (font_button->priv->size_label), size); |