Commit 2b6ca358 authored by Ernestas Kulik's avatar Ernestas Kulik

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
parent d9b152f9
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment