]> Pileus Git - ~andy/gtk/commitdiff
Work out the font size in floating point, and display the font size with
authorRoss Burton <ross@burtonini.com>
Thu, 9 Feb 2006 17:53:46 +0000 (17:53 +0000)
committerRoss Burton <rburton@src.gnome.org>
Thu, 9 Feb 2006 17:53:46 +0000 (17:53 +0000)
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)

ChangeLog
ChangeLog.pre-2-10
gtk/gtkfontbutton.c

index 69f7a7d342fc0d4ad97910a95250327f4ec53c36..247c8822ffa5f392845504d2d8a1d0e773f6fdd5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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)
index 69f7a7d342fc0d4ad97910a95250327f4ec53c36..247c8822ffa5f392845504d2d8a1d0e773f6fdd5 100644 (file)
@@ -1,3 +1,9 @@
+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)
index a0c6802a7071539ca7199b4eee78f09818b67366..9f8a11bdb9a19bd32f7b0a106c3606091d7f5596 100644 (file)
@@ -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);