}
end
$config['video-viewer'] ||= '/usr/bin/mplayer %f'
- $config['display-mode'] ||= 'one-image'
+ $config['preload-distance'] ||= 5
$config['cache-memory-use'] ||= 'memfree_50%'
if $config['cache-memory-use'] =~ /memfree_(\d+)/
$config['cache-memory-use-figure'] = memfree*$1.to_f/100
puts "background main preloading triggered..."
if ! @index.nil?
w, h = window.size
- for j in 1 .. 5
+ for j in 1 .. $config['preload-distance']
i = @index + j
if i < $allentries.size
$allentries[i].pixbuf_main(w, h)
$main_window.window_position = Gtk::Window::POS_CENTER
end
msg 3, "size: #{$config['width']}x#{$config['height']}"
- $main_window.set_default_size(($config['width'] || 600).to_i, ($config['height'] || 400).to_i)
+ $main_window.set_default_size(($config['width'] || 700).to_i, ($config['height'] || 600).to_i)
$main_window.signal_connect('configure-event') {
msg 3, "configure: pos: #{$main_window.window.root_origin.inspect} size: #{$main_window.window.size.inspect}"
x, y = $main_window.window.root_origin