forked from AuroraMiddleware/gtk
fontbutton: Properly display absolute sizes
Display them the same way as Pango does.
This commit is contained in:
parent
d5bc1b66d2
commit
7c675b34c5
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user