summaryrefslogtreecommitdiff
path: root/gtk/gtkfontbutton.c
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2006-02-09 17:53:46 +0000
committerRoss Burton <rburton@src.gnome.org>2006-02-09 17:53:46 +0000
commitf8271bdc1e09294d9f211125d43bb3de03cd18c7 (patch)
tree197cde4c0ca2a13fb867ad83d2ba6ebd6a16b679 /gtk/gtkfontbutton.c
parent4cbef86980dc4a5a30133002d5b2ddcf6e175b0e (diff)
downloadgtk+-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.c4
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);