*** empty log message ***
[booh] / bin / booh-classifier
index 1f76f36785be658f746e2830c0394d8d66947475..63589f8a2b944ff66fb59acb318b32ef00cc5796 100644 (file)
@@ -108,7 +108,7 @@ def read_config
         }
     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
@@ -309,7 +309,7 @@ class MainView < Gtk::DrawingArea
                     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)
@@ -613,7 +613,7 @@ def create_main_window
         $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