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 | |
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)
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 6 | ||||
-rw-r--r-- | gtk/gtkfontbutton.c | 4 |
3 files changed, 14 insertions, 2 deletions
@@ -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) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 69f7a7d342..247c8822ff 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -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) 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); |