msb/extra/atril/epub.patch
Willy Sudiarto Raharjo 6272e1ffa8
atril: Fix build without webkit2gtk.
Signed-off-by: Willy Sudiarto Raharjo <willysr@gmail.com>
2018-03-27 16:49:31 +07:00

32 lines
926 B
Diff

From efe29e6c72178f0970ded735560dc34e6fd05d87 Mon Sep 17 00:00:00 2001
From: raveit65 <mate@raveit.de>
Date: Tue, 27 Mar 2018 11:20:38 +0200
Subject: [PATCH] libview: fix build without epub
Fixes https://github.com/mate-desktop/atril/issues/308
---
libview/ev-jobs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libview/ev-jobs.c b/libview/ev-jobs.c
index 0fd2554..607bc2c 100644
--- a/libview/ev-jobs.c
+++ b/libview/ev-jobs.c
@@ -876,8 +876,6 @@ snapshot_callback(WebKitWebView *webview,
gtk_widget_destroy (gtk_widget_get_toplevel (GTK_WIDGET (webview)));
}
-#endif /* ENABLE_EPUB */
-
static void
web_thumbnail_get_screenshot_cb (WebKitWebView *webview,
WebKitLoadEvent event,
@@ -910,6 +908,8 @@ webview_load_failed_cb (WebKitWebView *webview,
return TRUE;
}
+#endif /* ENABLE_EPUB */
+
static gboolean
ev_job_thumbnail_run (EvJob *job)
{