From 39a4b032de2258efb31de5e378defa1282704894 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Fri, 3 Jan 2020 18:02:35 +0100 Subject: fm-properties: Remove use of mate-desktop-thumbnail helper don't use mate_desktop_thumbnail_scale_down_pixbuf(). gdk-pixbuf doesn't have the same bugs when shrinking images by large factors. --- src/file-manager/fm-properties-window.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/file-manager') diff --git a/src/file-manager/fm-properties-window.c b/src/file-manager/fm-properties-window.c index 03592589..75784811 100644 --- a/src/file-manager/fm-properties-window.c +++ b/src/file-manager/fm-properties-window.c @@ -31,9 +31,6 @@ #include #include -#define MATE_DESKTOP_USE_UNSTABLE_API -#include - #include "../../eel/eel-accessibility.h" #include "../../eel/eel-gdk-pixbuf-extensions.h" #include "../../eel/eel-glib-extensions.h" @@ -5677,10 +5674,11 @@ update_preview_callback (GtkFileChooser *icon_chooser, scale = (double)gdk_pixbuf_get_height (pixbuf) / gdk_pixbuf_get_width (pixbuf); - scaled_pixbuf = mate_desktop_thumbnail_scale_down_pixbuf + scaled_pixbuf = gdk_pixbuf_scale_simple (pixbuf, PREVIEW_IMAGE_WIDTH, - scale * PREVIEW_IMAGE_WIDTH); + scale * PREVIEW_IMAGE_WIDTH, + GDK_INTERP_HYPER); g_object_unref (pixbuf); pixbuf = scaled_pixbuf; } -- cgit v1.2.1