Commit 83a83e3a authored by Cosimo Cecchi's avatar Cosimo Cecchi

icon-info: use gdk_pixbuf_new_from_stream_at_scale()

parent 2103a490
......@@ -25,7 +25,6 @@
#include "nautilus-default-file-icon.h"
#include <gtk/gtk.h>
#include <gio/gio.h>
#include <eel/eel-gdk-pixbuf-extensions.h>
struct _NautilusIconInfo
{
......@@ -358,7 +357,10 @@ nautilus_icon_info_lookup (GIcon *icon,
size,
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);
}
......
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