comparison src/preferences.c @ 1506:d352a44545a6

Force thumbnails refreshing when thumbnails dimensions are modified through Preferences.
author zas_
date Thu, 02 Apr 2009 23:11:07 +0000
parents f879e7d94c6d
children ad5018434476
comparison
equal deleted inserted replaced
1505:2a99cf2184b0 1506:d352a44545a6
249 options->image.zoom_to_fit_allow_expand = c_options->image.zoom_to_fit_allow_expand; 249 options->image.zoom_to_fit_allow_expand = c_options->image.zoom_to_fit_allow_expand;
250 options->image.max_window_size = c_options->image.max_window_size; 250 options->image.max_window_size = c_options->image.max_window_size;
251 options->image.limit_autofit_size = c_options->image.limit_autofit_size; 251 options->image.limit_autofit_size = c_options->image.limit_autofit_size;
252 options->image.max_autofit_size = c_options->image.max_autofit_size; 252 options->image.max_autofit_size = c_options->image.max_autofit_size;
253 options->progressive_key_scrolling = c_options->progressive_key_scrolling; 253 options->progressive_key_scrolling = c_options->progressive_key_scrolling;
254 options->thumbnails.max_width = c_options->thumbnails.max_width; 254 if (options->thumbnails.max_width != c_options->thumbnails.max_width
255 options->thumbnails.max_height = c_options->thumbnails.max_height; 255 || options->thumbnails.max_height != c_options->thumbnails.max_height
256 || options->thumbnails.quality != c_options->thumbnails.quality)
257 {
258 thumb_format_changed = TRUE;
259 refresh = TRUE;
260 options->thumbnails.max_width = c_options->thumbnails.max_width;
261 options->thumbnails.max_height = c_options->thumbnails.max_height;
262 options->thumbnails.quality = c_options->thumbnails.quality;
263 }
256 options->thumbnails.enable_caching = c_options->thumbnails.enable_caching; 264 options->thumbnails.enable_caching = c_options->thumbnails.enable_caching;
257 options->thumbnails.cache_into_dirs = c_options->thumbnails.cache_into_dirs; 265 options->thumbnails.cache_into_dirs = c_options->thumbnails.cache_into_dirs;
258 options->thumbnails.fast = c_options->thumbnails.fast; 266 options->thumbnails.fast = c_options->thumbnails.fast;
259 options->thumbnails.use_exif = c_options->thumbnails.use_exif; 267 options->thumbnails.use_exif = c_options->thumbnails.use_exif;
260 #if 0 268 #if 0
285 options->image.image_cache_max = c_options->image.image_cache_max; 293 options->image.image_cache_max = c_options->image.image_cache_max;
286 294
287 options->image.read_buffer_size = c_options->image.read_buffer_size; 295 options->image.read_buffer_size = c_options->image.read_buffer_size;
288 options->image.idle_read_loop_count = c_options->image.idle_read_loop_count; 296 options->image.idle_read_loop_count = c_options->image.idle_read_loop_count;
289 297
290 options->thumbnails.quality = c_options->thumbnails.quality;
291 options->image.zoom_quality = c_options->image.zoom_quality; 298 options->image.zoom_quality = c_options->image.zoom_quality;
292 299
293 options->image.zoom_increment = c_options->image.zoom_increment; 300 options->image.zoom_increment = c_options->image.zoom_increment;
294 301
295 options->image.enable_read_ahead = c_options->image.enable_read_ahead; 302 options->image.enable_read_ahead = c_options->image.enable_read_ahead;