[PATCH] Limit max. size of SVG to requested pixel size



The attached patch vastly improves my SVG icon theme experience. Without
using it, all my SVG icons on the desktop are scaled up to
NAUTILUS_ICON_MAXIMUM_SIZE.

-- 
Christian Neumair <chris gnome-de org>
Index: libnautilus-private/nautilus-icon-factory.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-icon-factory.c,v
retrieving revision 1.326
diff -u -p -r1.326 nautilus-icon-factory.c
--- libnautilus-private/nautilus-icon-factory.c	18 Apr 2006 16:54:31 -0000	1.326
+++ libnautilus-private/nautilus-icon-factory.c	24 May 2006 20:44:12 -0000
@@ -1090,7 +1090,7 @@ load_pixbuf_svg (const char *path,
 	if (base_size != 0) {
 		zoom = (double)size_in_pixels / base_size;
 
-		pixbuf = rsvg_pixbuf_from_file_at_zoom_with_max (path, zoom, zoom, NAUTILUS_ICON_MAXIMUM_SIZE, NAUTILUS_ICON_MAXIMUM_SIZE, NULL);
+		pixbuf = rsvg_pixbuf_from_file_at_zoom_with_max (path, zoom, zoom, size_in_pixels, size_in_pixels, NULL);
 	} else {
 		pixbuf = rsvg_pixbuf_from_file_at_max_size (path,
 							    size_in_pixels,


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