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
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
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
}
true
}
- $statusbar.push(0, utf8(_("Ready.")))
$main_window.show_all
end