[evince] shell: Remove use of obsolete gnome_desktop_thumbnail_scale_down_pixbuf()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] shell: Remove use of obsolete gnome_desktop_thumbnail_scale_down_pixbuf()
- Date: Tue, 11 Jul 2017 16:54:18 +0000 (UTC)
commit ebd918b85e13ea7dbfc738de9d936f98be85477f
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jul 11 13:28:49 2017 +0200
shell: Remove use of obsolete gnome_desktop_thumbnail_scale_down_pixbuf()
It's obsolete since gdk-pixbuf 2.36.5.
https://bugzilla.gnome.org/show_bug.cgi?id=784789
configure.ac | 5 +++--
shell/ev-recent-view.c | 7 ++++---
2 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e7ee360..b34fcbc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -120,6 +120,7 @@ GLIB_REQUIRED=2.36.0
LIBSECRET_REQUIRED=0.5
GTK_REQUIRED=3.16.0
NAUTILUS_REQUIRED=2.91.4
+GDK_PIXBUF_REQUIRED=2.36.5
AC_SUBST([GLIB_REQUIRED])
AC_SUBST([GTK_REQUIRED])
@@ -325,9 +326,9 @@ AC_ARG_ENABLE([libgnome-desktop],
if test "$enable_gnome_desktop" != "no"; then
if test "$enable_gnome_desktop" = "auto"; then
- PKG_CHECK_MODULES([LIBGNOME_DESKTOP], [gnome-desktop-3.0], has_libgnome_desktop=yes,
has_libgnome_desktop=no)
+ PKG_CHECK_MODULES([LIBGNOME_DESKTOP], [gnome-desktop-3.0 gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED],
has_libgnome_desktop=yes, has_libgnome_desktop=no)
else
- PKG_CHECK_MODULES([LIBGNOME_DESKTOP], [gnome-desktop-3.0])
+ PKG_CHECK_MODULES([LIBGNOME_DESKTOP], [gnome-desktop-3.0 gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED])
has_libgnome_desktop=yes
fi
diff --git a/shell/ev-recent-view.c b/shell/ev-recent-view.c
index 57b1ac4..b194acc 100644
--- a/shell/ev-recent-view.c
+++ b/shell/ev-recent-view.c
@@ -551,9 +551,10 @@ get_thumbnail_from_cache_thread (GTask *task,
} else if (width != target_width || height != target_height) {
GdkPixbuf *scaled;
- scaled = gnome_desktop_thumbnail_scale_down_pixbuf (thumbnail,
- target_width,
- target_height);
+ scaled = gdk_pixbuf_scale_simple (thumbnail,
+ target_width,
+ target_height,
+ GDK_INTERP_HYPER);
g_object_unref (thumbnail);
thumbnail = scaled;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]