~fantasy/fantasy/trunk

« back to all changes in this revision

Viewing changes to src/views/Library.vala

  • Committer: Samuel Dolt
  • Date: 2014-10-16 12:26:53 UTC
  • Revision ID: samuel@dolt.ch-20141016122653-884j2xd36b3azhut
Fantasy thumnail in .cache/thumbnails

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
 
90
90
        foreach(File file in files) {
91
91
            // Generating thumbnail
92
 
            Gdk.Pixbuf pixbuf;
93
 
            var thumnail_path = "/var/tmp/" + Utils.md5path(file) + ".jpg";
94
 
            var epub_path = file.get_path();
95
 
 
96
 
            Posix.system("epub-thumbnailer " + epub_path + " " + thumnail_path + " 193");
97
 
 
98
 
            try {
99
 
                pixbuf = new Gdk.Pixbuf.from_file(thumnail_path);
100
 
            } catch(Error error) {
101
 
                pixbuf = Gtk.IconTheme.get_default().load_icon(icon_epub, 193, 0);
102
 
            }
 
92
            Gdk.Pixbuf pixbuf = Utils.EpubThumbnailer(file);
103
93
 
104
94
            Gtk.TreeIter iter;
105
95
            liststore.append (out iter);