[nautilus] icon-info: use gdk_pixbuf_new_from_stream_at_scale()



commit 83a83e3a2200127889c9979240049124b7e9a182
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Jan 20 14:34:17 2011 +0100

    icon-info: use gdk_pixbuf_new_from_stream_at_scale()

 libnautilus-private/nautilus-icon-info.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libnautilus-private/nautilus-icon-info.c b/libnautilus-private/nautilus-icon-info.c
index fc052a7..6d6e151 100644
--- a/libnautilus-private/nautilus-icon-info.c
+++ b/libnautilus-private/nautilus-icon-info.c
@@ -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);
 		}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]