forked from enlightenment/efl
parent
dead11c234
commit
f15e1185c1
|
@ -14,15 +14,17 @@ _generate_thumb(Ethumb *e)
|
||||||
Epdf_Document *document;
|
Epdf_Document *document;
|
||||||
Epdf_Page *page;
|
Epdf_Page *page;
|
||||||
Evas_Object *o;
|
Evas_Object *o;
|
||||||
|
const char *src_path;
|
||||||
int w, h, ww, hh;
|
int w, h, ww, hh;
|
||||||
int fx, fy, fw, fh;
|
int fx, fy, fw, fh;
|
||||||
int npages;
|
int npages;
|
||||||
int pagenum;
|
int pagenum;
|
||||||
|
|
||||||
document = epdf_document_new(e->src_path);
|
ethumb_file_get(e, &src_path, NULL);
|
||||||
|
document = epdf_document_new(src_path);
|
||||||
if (!document)
|
if (!document)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "ERROR: could not read document: %s\n", e->src_path);
|
fprintf(stderr, "ERROR: could not read document: %s\n", src_path);
|
||||||
ethumb_finished_callback_call(e, 0);
|
ethumb_finished_callback_call(e, 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -30,7 +32,7 @@ _generate_thumb(Ethumb *e)
|
||||||
page = epdf_page_new(document);
|
page = epdf_page_new(document);
|
||||||
if (!page)
|
if (!page)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "ERROR: could not read document: %s\n", e->src_path);
|
fprintf(stderr, "ERROR: could not read document: %s\n", src_path);
|
||||||
epdf_document_delete(document);
|
epdf_document_delete(document);
|
||||||
ethumb_finished_callback_call(e, 0);
|
ethumb_finished_callback_call(e, 0);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue