summaryrefslogtreecommitdiff
path: root/src/file-manager/fm-properties-window.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2020-01-03 18:02:35 +0100
committerraveit65 <[email protected]>2022-07-20 21:40:42 +0200
commit39a4b032de2258efb31de5e378defa1282704894 (patch)
treef85224281d2963698cb73589edebeada20f0f079 /src/file-manager/fm-properties-window.c
parent101c355c5e3937961f92bc1b58deb291b09691a6 (diff)
downloadcaja-39a4b032de2258efb31de5e378defa1282704894.tar.bz2
caja-39a4b032de2258efb31de5e378defa1282704894.tar.xz
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.
Diffstat (limited to 'src/file-manager/fm-properties-window.c')
-rw-r--r--src/file-manager/fm-properties-window.c8
1 files changed, 3 insertions, 5 deletions
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 <glib/gi18n.h>
#include <sys/stat.h>
-#define MATE_DESKTOP_USE_UNSTABLE_API
-#include <libmate-desktop/mate-desktop-thumbnail.h>
-
#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;
}