diff src/thumb.c @ 333:767b53cd9ab7

Rename thumbnails related options.
author zas_
date Sat, 12 Apr 2008 09:41:44 +0000
parents b16b9b8979e5
children 4b2d7f9af171
line wrap: on
line diff
--- a/src/thumb.c	Sat Apr 12 09:12:37 2008 +0000
+++ b/src/thumb.c	Sat Apr 12 09:41:44 2008 +0000
@@ -196,7 +196,7 @@
 			if (w < 1) w = 1;
 			}
 
-		tl->pixbuf = gdk_pixbuf_scale_simple(pixbuf, w, h, (GdkInterpType)options->thumbnail_quality);
+		tl->pixbuf = gdk_pixbuf_scale_simple(pixbuf, w, h, (GdkInterpType)options->thumbnails.quality);
 		save = TRUE;
 		}
 	else
@@ -255,7 +255,7 @@
 	image_loader_free(tl->il);
 	tl->il = image_loader_new(file_data_new_simple(path));
 
-	if (options->thumbnail_fast)
+	if (options->thumbnails.fast)
 		{
 		/* this will speed up jpegs by up to 3x in some cases */
 		image_loader_set_requested_size(tl->il, tl->max_w, tl->max_h);
@@ -350,7 +350,7 @@
 			}
 		}
 
-	if (!cache_path && options->use_xvpics_thumbnails)
+	if (!cache_path && options->thumbnails.use_xvpics)
 		{
 		tl->pixbuf = get_xv_thumbnail(tl->path, tl->max_w, tl->max_h);
 		if (tl->pixbuf)
@@ -461,7 +461,7 @@
 {
 	ThumbLoader *tl;
 
-	if (options->thumbnail_spec_standard)
+	if (options->thumbnails.spec_standard)
 		{
 		return (ThumbLoader *)thumb_loader_std_new(width, height);
 		}
@@ -469,7 +469,7 @@
 	tl = g_new0(ThumbLoader, 1);
 	tl->standard_loader = FALSE;
 	tl->path = NULL;
-	tl->cache_enable = options->enable_thumb_caching;
+	tl->cache_enable = options->thumbnails.enable_caching;
 	tl->cache_hit = FALSE;
 	tl->percent_done = 0.0;
 	tl->max_w = width;