[gnome-font-viewer] Load the mime icon at the exact size



commit 1c7226d7329670ca982361abfbc2c7a7990d004c
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Nov 16 13:46:52 2017 -0500

    Load the mime icon at the exact size
    
    The theme only has size 48 and 512 nowadays, so if we don't
    force the icon to be downscaled, we get an enormous icon
    icon in the ui.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=790459

 src/font-model.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/font-model.c b/src/font-model.c
index a754573..9d7edf6 100644
--- a/src/font-model.c
+++ b/src/font-model.c
@@ -365,7 +365,8 @@ ensure_fallback_icon (FontViewModel *self)
     icon_theme = gtk_icon_theme_get_default ();
     icon = g_content_type_get_icon ("application/x-font-ttf");
     icon_info = gtk_icon_theme_lookup_by_gicon_for_scale (icon_theme, icon,
-                                                          128, self->priv->scale_factor, 0);
+                                                          128, self->priv->scale_factor,
+                                                          GTK_ICON_LOOKUP_FORCE_SIZE);
     g_object_unref (icon);
 
     if (!icon_info)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]