From 65a3791db8209d7a001c1af6f944e8dd180859e1 Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Sat, 9 Jan 2016 16:16:24 +0100 Subject: icon-info: use gdk_pixbuf_new_from_stream_at_scale() https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-0&id=83a83e3 --- libcaja-private/caja-icon-info.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libcaja-private') diff --git a/libcaja-private/caja-icon-info.c b/libcaja-private/caja-icon-info.c index a32cf991..3a63bb44 100644 --- a/libcaja-private/caja-icon-info.c +++ b/libcaja-private/caja-icon-info.c @@ -25,7 +25,6 @@ #include "caja-default-file-icon.h" #include #include -#include struct _CajaIconInfo { @@ -383,7 +382,10 @@ caja_icon_info_lookup (GIcon *icon, NULL, NULL, NULL); if (stream) { - pixbuf = eel_gdk_pixbuf_load_from_stream_at_size (stream, size); + pixbuf = gdk_pixbuf_new_from_stream_at_scale (stream, + size, size, TRUE, + NULL, NULL); + g_input_stream_close (stream, NULL, NULL); g_object_unref (stream); } -- cgit v1.2.1