comparison src/thumb_standard.c @ 333:767b53cd9ab7

Rename thumbnails related options.
author zas_
date Sat, 12 Apr 2008 09:41:44 +0000
parents b16b9b8979e5
children f0289d80ecc1
comparison
equal deleted inserted replaced
332:3c4bad726e98 333:767b53cd9ab7
78 78
79 tl->pixbuf = NULL; 79 tl->pixbuf = NULL;
80 tl->il = NULL; 80 tl->il = NULL;
81 tl->source_path = NULL; 81 tl->source_path = NULL;
82 82
83 tl->cache_enable = options->enable_thumb_caching; 83 tl->cache_enable = options->thumbnails.enable_caching;
84 tl->cache_local = FALSE; 84 tl->cache_local = FALSE;
85 tl->cache_retry = FALSE; 85 tl->cache_retry = FALSE;
86 86
87 return tl; 87 return tl;
88 } 88 }
434 434
435 if (thumb_loader_std_scale_aspect(cache_w, cache_h, sw, sh, 435 if (thumb_loader_std_scale_aspect(cache_w, cache_h, sw, sh,
436 &thumb_w, &thumb_h)) 436 &thumb_w, &thumb_h))
437 { 437 {
438 pixbuf_thumb = gdk_pixbuf_scale_simple(pixbuf, thumb_w, thumb_h, 438 pixbuf_thumb = gdk_pixbuf_scale_simple(pixbuf, thumb_w, thumb_h,
439 (GdkInterpType)options->thumbnail_quality); 439 (GdkInterpType)options->thumbnails.quality);
440 } 440 }
441 else 441 else
442 { 442 {
443 pixbuf_thumb = pixbuf; 443 pixbuf_thumb = pixbuf;
444 g_object_ref(G_OBJECT(pixbuf_thumb)); 444 g_object_ref(G_OBJECT(pixbuf_thumb));
482 482
483 if (thumb_loader_std_scale_aspect(tl->requested_width, tl->requested_height, sw, sh, 483 if (thumb_loader_std_scale_aspect(tl->requested_width, tl->requested_height, sw, sh,
484 &thumb_w, &thumb_h)) 484 &thumb_w, &thumb_h))
485 { 485 {
486 result = gdk_pixbuf_scale_simple(pixbuf, thumb_w, thumb_h, 486 result = gdk_pixbuf_scale_simple(pixbuf, thumb_w, thumb_h,
487 (GdkInterpType)options->thumbnail_quality); 487 (GdkInterpType)options->thumbnails.quality);
488 } 488 }
489 else 489 else
490 { 490 {
491 result = pixbuf; 491 result = pixbuf;
492 g_object_ref(result); 492 g_object_ref(result);
601 601
602 static gint thumb_loader_std_setup(ThumbLoaderStd *tl, const gchar *path) 602 static gint thumb_loader_std_setup(ThumbLoaderStd *tl, const gchar *path)
603 { 603 {
604 tl->il = image_loader_new_from_path(path); 604 tl->il = image_loader_new_from_path(path);
605 605
606 if (options->thumbnail_fast) 606 if (options->thumbnails.fast)
607 { 607 {
608 /* this will speed up jpegs by up to 3x in some cases */ 608 /* this will speed up jpegs by up to 3x in some cases */
609 if (tl->requested_width <= THUMB_SIZE_NORMAL && 609 if (tl->requested_width <= THUMB_SIZE_NORMAL &&
610 tl->requested_height <= THUMB_SIZE_NORMAL) 610 tl->requested_height <= THUMB_SIZE_NORMAL)
611 { 611 {