summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <[email protected]>2017-07-14 11:41:38 +0200
committerraveit65 <[email protected]>2020-01-12 13:11:41 +0100
commitf7ca9dc7fcc5e088fad181e6f76c5e8a47d70a22 (patch)
treebfc833134d6a948d1ce56975b1414b61aead3b70
parent4d71cc446d3211280ee97609afcb504c0cf4b819 (diff)
downloadeom-f7ca9dc7fcc5e088fad181e6f76c5e8a47d70a22.tar.bz2
eom-f7ca9dc7fcc5e088fad181e6f76c5e8a47d70a22.tar.xz
thumbnail: 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. https://bugzilla.gnome.org/show_bug.cgi?id=784942 origin commit: https://gitlab.gnome.org/GNOME/eog/commit/0e7749b
-rw-r--r--configure.ac2
-rw-r--r--src/eom-thumbnail.c9
2 files changed, 6 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index e358b31..8529497 100644
--- a/configure.ac
+++ b/configure.ac
@@ -89,7 +89,7 @@ GLIB_REQUIRED=2.52.0
GIO_REQUIRED=2.50.0
GTK_REQUIRED=3.22.0
MATE_DESKTOP_REQUIRED=1.17.0
-GDKPIXBUF_REQUIRED=2.30.0
+GDKPIXBUF_REQUIRED=2.36.5
SHARED_MIME_INFO_REQUIRED=0.20
EXEMPI_REQUIRED=1.99.5
LIBPEAS_REQUIRED=1.8.0
diff --git a/src/eom-thumbnail.c b/src/eom-thumbnail.c
index e4cc56a..6a278b3 100644
--- a/src/eom-thumbnail.c
+++ b/src/eom-thumbnail.c
@@ -123,9 +123,10 @@ create_thumbnail_from_pixbuf (EomThumbData *data,
perc = CLAMP (128.0/(MAX (width, height)), 0, 1);
- thumb = mate_desktop_thumbnail_scale_down_pixbuf (pixbuf,
- width*perc,
- height*perc);
+ thumb = gdk_pixbuf_scale_simple (pixbuf,
+ width*perc,
+ height*perc,
+ GDK_INTERP_HYPER);
return thumb;
}
@@ -444,7 +445,7 @@ eom_thumbnail_fit_to_size (GdkPixbuf *thumbnail, gint dimension)
width = MAX (width * factor, 1);
height = MAX (height * factor, 1);
- result_pixbuf = mate_desktop_thumbnail_scale_down_pixbuf (thumbnail, width, height);
+ result_pixbuf = gdk_pixbuf_scale_simple (thumbnail, width, height, GDK_INTERP_HYPER);
return result_pixbuf;
}