tell about images number on boot
authorgc <gc>
Sun, 8 Jul 2007 22:42:20 +0000 (22:42 +0000)
committergc <gc>
Sun, 8 Jul 2007 22:42:20 +0000 (22:42 +0000)
bin/booh-classifier

index 894c60a4310b39ab8c9ee21614b6941710155bf5..963564cdeb3185e6d0e6ae2082da548dbe686d43 100644 (file)
@@ -436,6 +436,7 @@ def show_entries
         ctid = $statusbar.get_context_id('images loading')
         $statusbar.push(ctid, utf8(_("Loading images...")))
         tooltips = Gtk::Tooltips.new
+        counter = 0
         $allentries.each_with_index { |entry, i|
             if entry.pixbuf_full
                 entry.pixbuf_thumbnail
@@ -453,10 +454,12 @@ def show_entries
                 if i % 4 == 0
                     check_memory_free_cache_if_needed
                 end
+                counter += 1
             end
         }
         check_memory_free_cache_if_needed
         $statusbar.pop(ctid)
+        $statusbar.push(0, utf8(_("%d images loaded.") % counter))
         puts "time: #{Time.now - t1}"
     }
     e.priority = -1
@@ -486,7 +489,7 @@ def open_dir(path)
         Dir.entries(dir).each { |file|
             type = entry2type(file)
             if type
-#&& $allentries.size < 5
+# && $allentries.size < 5
                 $allentries << Entry.new(File.join(dir, file), type)
             end
         }
@@ -643,7 +646,6 @@ def create_main_window
         true
     }
  
-    $statusbar.push(0, utf8(_("Ready.")))
     $main_window.show_all
 end