[nautilus] properties-window: use gdk_pixbuf_scale_simple ()
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] properties-window: use gdk_pixbuf_scale_simple ()
- Date: Thu, 23 Feb 2017 13:23:19 +0000 (UTC)
commit 2b6ca358c5187c3ef741ce29dc134db1b395f4fd
Author: Ernestas Kulik <ernestask src gnome org>
Date: Wed Feb 22 18:35:44 2017 +0200
properties-window: use gdk_pixbuf_scale_simple ()
gnome_desktop_thumbnail_scale_down_pixbuf () has been deprecated in
favor of gdk_pixbuf_scale_simple (). This commit replaces the call to
the deprecated function.
https://bugzilla.gnome.org/show_bug.cgi?id=779084
src/nautilus-properties-window.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index a9d6222..40ad255 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -5559,10 +5559,10 @@ update_preview_callback (GtkFileChooser *icon_chooser,
scale = (double) gdk_pixbuf_get_height (pixbuf) /
gdk_pixbuf_get_width (pixbuf);
- scaled_pixbuf = gnome_desktop_thumbnail_scale_down_pixbuf
- (pixbuf,
- PREVIEW_IMAGE_WIDTH,
- scale * PREVIEW_IMAGE_WIDTH);
+ scaled_pixbuf = gdk_pixbuf_scale_simple (pixbuf,
+ PREVIEW_IMAGE_WIDTH,
+ scale * PREVIEW_IMAGE_WIDTH,
+ GDK_INTERP_BILINEAR);
g_object_unref (pixbuf);
pixbuf = scaled_pixbuf;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]