diff options
author | Benjamin Otte <otte@redhat.com> | 2011-09-22 21:35:25 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-09-22 21:44:06 +0200 |
commit | 7c675b34c537e4956aec4b7e78734fb7bf836df1 (patch) | |
tree | d2efc3d8c2c5ef8aaf00dd4c0857daf550c6a0f2 /gtk/gtkfontbutton.c | |
parent | d5bc1b66d22f100cf5b4851be65ac054748ce86c (diff) | |
download | gtk+-7c675b34c537e4956aec4b7e78734fb7bf836df1.tar.gz |
fontbutton: Properly display absolute sizes
Display them the same way as Pango does.
Diffstat (limited to 'gtk/gtkfontbutton.c')
-rw-r--r-- | gtk/gtkfontbutton.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c index f7d65efb95..21d64850f0 100644 --- a/gtk/gtkfontbutton.c +++ b/gtk/gtkfontbutton.c @@ -1183,8 +1183,10 @@ gtk_font_button_update_font_info (GtkFontButton *font_button) if (font_button->priv->show_size) { - gchar *size = g_strdup_printf ("%g", - pango_font_description_get_size (priv->font_desc) / (double)PANGO_SCALE); + /* mirror Pango, which doesn't translate this either */ + gchar *size = g_strdup_printf ("%g%s", + pango_font_description_get_size (priv->font_desc) / (double)PANGO_SCALE, + pango_font_description_get_size_is_absolute (priv->font_desc) ? "px" : ""); gtk_label_set_text (GTK_LABEL (font_button->priv->size_label), size); |