nautilus r14174 - in trunk: . libnautilus-private



Author: cneumair
Date: Mon May 19 13:40:25 2008
New Revision: 14174
URL: http://svn.gnome.org/viewvc/nautilus?rev=14174&view=rev

Log:
2008-05-19  Christian Neumair  <cneumair gnome org>

	* libnautilus-private/nautilus-file.c (nautilus_file_get_icon):
	* libnautilus-private/nautilus-icon-info.c
	(nautilus_icon_info_lookup),
	(nautilus_icon_info_get_pixbuf_nodefault_at_size),
	(nautilus_icon_info_get_pixbuf_at_size):
	Use bilinear interpolation instead of hyperbolic. Massively speeds up
	loading of directories with previously generated thumbnails.


Modified:
   trunk/ChangeLog
   trunk/libnautilus-private/nautilus-file.c
   trunk/libnautilus-private/nautilus-icon-info.c

Modified: trunk/libnautilus-private/nautilus-file.c
==============================================================================
--- trunk/libnautilus-private/nautilus-file.c	(original)
+++ trunk/libnautilus-private/nautilus-file.c	Mon May 19 13:40:25 2008
@@ -3400,7 +3400,7 @@
 
 				scaled_pixbuf = gdk_pixbuf_scale_simple (raw_pixbuf,
 									 w * scale, h * scale,
-									 GDK_INTERP_HYPER);
+									 GDK_INTERP_BILINEAR);
 				nautilus_thumbnail_frame_image (&scaled_pixbuf);
 				
 				g_object_unref (raw_pixbuf);

Modified: trunk/libnautilus-private/nautilus-icon-info.c
==============================================================================
--- trunk/libnautilus-private/nautilus-icon-info.c	(original)
+++ trunk/libnautilus-private/nautilus-icon-info.c	Mon May 19 13:40:25 2008
@@ -368,7 +368,7 @@
 				scale = (double)size / s;
 				scaled_pixbuf = gdk_pixbuf_scale_simple (pixbuf,
 									 w * scale, h * scale,
-									 GDK_INTERP_HYPER);
+									 GDK_INTERP_BILINEAR);
 				g_object_unref (pixbuf);
 				pixbuf = scaled_pixbuf;
 			}
@@ -508,7 +508,7 @@
 	scale = (double)forced_size / s;
 	scaled_pixbuf = gdk_pixbuf_scale_simple (pixbuf,
 						 w * scale, h * scale,
-						 GDK_INTERP_HYPER);
+						 GDK_INTERP_BILINEAR);
 	g_object_unref (pixbuf);
 	return scaled_pixbuf;
 }
@@ -534,7 +534,7 @@
 	scale = (double)forced_size / s;
 	scaled_pixbuf = gdk_pixbuf_scale_simple (pixbuf,
 						 w * scale, h * scale,
-						 GDK_INTERP_HYPER);
+						 GDK_INTERP_BILINEAR);
 	g_object_unref (pixbuf);
 	return scaled_pixbuf;
 }



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