[evolution] Bug 787590 - Replace use of gnome_desktop_thumbnail_scale_down_pixbuf()



commit ec5de77564f423a054ba59d3c498b3e369b9f8df
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Sep 13 18:10:20 2017 +0200

    Bug 787590 - Replace use of gnome_desktop_thumbnail_scale_down_pixbuf()

 src/e-util/e-icon-factory.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/e-util/e-icon-factory.c b/src/e-util/e-icon-factory.c
index fc43b4b..25c2ecb 100644
--- a/src/e-util/e-icon-factory.c
+++ b/src/e-util/e-icon-factory.c
@@ -147,11 +147,9 @@ e_icon_factory_pixbuf_scale (GdkPixbuf *pixbuf,
        if (height <= 0)
                height = 1;
 
-       #ifdef HAVE_GNOME_DESKTOP
        /* because this can only scale down, not up */
        if (gdk_pixbuf_get_width (pixbuf) > width && gdk_pixbuf_get_height (pixbuf) > height)
-               return gnome_desktop_thumbnail_scale_down_pixbuf (pixbuf, width, height);
-       #endif
+               return gdk_pixbuf_scale_simple (pixbuf, width, height, GDK_INTERP_HYPER);
 
        return gdk_pixbuf_scale_simple (pixbuf, width, height, GDK_INTERP_BILINEAR);
 }


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