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)
+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)
+
2006-02-09 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkevents-win32.c (gdk_event_translate)
+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)
+
2006-02-09 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkevents-win32.c (gdk_event_translate)
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);