diff options
author | rootavish <[email protected]> | 2014-07-10 13:50:37 +0530 |
---|---|---|
committer | rootavish <[email protected]> | 2014-07-10 13:50:37 +0530 |
commit | 423af80ad421a8a19e1c4be0c6851dff845a0f6c (patch) | |
tree | a5f5258fcfd1850f36d1238c7162146f3c186a82 /libview/ev-jobs.c | |
parent | df43418e209ae9c98844185f789c63769ae9b3a2 (diff) | |
download | atril-423af80ad421a8a19e1c4be0c6851dff845a0f6c.tar.bz2 atril-423af80ad421a8a19e1c4be0c6851dff845a0f6c.tar.xz |
Files for EvWebView, thumbnails possible with GTK+-2.0
My last commit was supposed to have ev-web-view.c and ev-web-view.h however due to some reason I missed them last time, so here they are now. i am able to achieve thumbnails for my epub however these are of absurdly large size. Still struggling to get the webview done due to thread problems that I am encountering.
Diffstat (limited to 'libview/ev-jobs.c')
-rw-r--r-- | libview/ev-jobs.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libview/ev-jobs.c b/libview/ev-jobs.c index 76e183a1..7792fafa 100644 --- a/libview/ev-jobs.c +++ b/libview/ev-jobs.c @@ -211,7 +211,7 @@ ev_job_run (EvJob *job) { EvJobClass *class = EV_JOB_GET_CLASS (job); - return class->run (job); + return class-> run (job); } void @@ -791,7 +791,12 @@ ev_job_thumbnail_run (EvJob *job) ev_document_doc_mutex_lock (); page = ev_document_get_page (job->document, job_thumb->page); - rc = ev_render_context_new (page, job_thumb->rotation, job_thumb->scale); + if (job->document->iswebdocument == TRUE ) { + rc = ev_render_context_new (page, 0, job_thumb->scale); + } + else { + rc = ev_render_context_new (page, job_thumb->rotation, job_thumb->scale); + } g_object_unref (page); job_thumb->thumbnail = ev_document_thumbnails_get_thumbnail (EV_DOCUMENT_THUMBNAILS (job->document), |