summaryrefslogtreecommitdiff
path: root/libview/ev-jobs.c
diff options
context:
space:
mode:
authorrootavish <[email protected]>2014-09-22 22:40:52 +0530
committerrootavish <[email protected]>2014-09-22 22:40:52 +0530
commita022a290b92a27975d5d3a526003fcdb9db1212f (patch)
tree1224440382ffe27fbdcd0a8ae2f17d5bdd84724f /libview/ev-jobs.c
parent5ac452a8a78841bf88dee6e7b0a9ea421299f669 (diff)
downloadatril-a022a290b92a27975d5d3a526003fcdb9db1212f.tar.bz2
atril-a022a290b92a27975d5d3a526003fcdb9db1212f.tar.xz
Can build with epub disabled
Added the required preprocessor directives to make building without epub support possible.
Diffstat (limited to 'libview/ev-jobs.c')
-rw-r--r--libview/ev-jobs.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libview/ev-jobs.c b/libview/ev-jobs.c
index 3590d822..4a352521 100644
--- a/libview/ev-jobs.c
+++ b/libview/ev-jobs.c
@@ -41,7 +41,7 @@
#include "ev-debug.h"
#include <gtk/gtk.h>
-#ifdef ENABLE_EPUB
+#if ENABLE_EPUB
#if GTK_CHECK_VERSION(3, 0, 0)
#include <webkit2/webkit2.h>
#else
@@ -790,6 +790,7 @@ ev_job_thumbnail_dispose (GObject *object)
(* G_OBJECT_CLASS (ev_job_thumbnail_parent_class)->dispose) (object);
}
+#if ENABLE_EPUB
#if !GTK_CHECK_VERSION(3, 0, 0)
static gboolean
web_thumbnail_get_screenshot_cb(EvJobThumbnail *job_thumb)
@@ -860,7 +861,7 @@ web_thumbnail_get_screenshot_cb (WebKitWebView *webview,
g_object_ref(job_thumb));
}
#endif
-
+#endif
static gboolean
ev_job_thumbnail_run (EvJob *job)
{
@@ -888,6 +889,7 @@ ev_job_thumbnail_run (EvJob *job)
}
g_object_unref (page);
+#if ENABLE_EPUB
if (job->document->iswebdocument == TRUE) {
if (!webview) {
webview = webkit_web_view_new();
@@ -916,7 +918,9 @@ ev_job_thumbnail_run (EvJob *job)
#endif
}
- else {
+ else
+#endif
+ {
job_thumb->thumbnail = ev_document_thumbnails_get_thumbnail (EV_DOCUMENT_THUMBNAILS (job->document),
rc, TRUE);
ev_document_doc_mutex_unlock ();