summaryrefslogtreecommitdiff
path: root/libdocument/ev-document.c
diff options
context:
space:
mode:
authorOz N Tiram <[email protected]>2020-06-11 09:15:28 +0200
committerRobert Antoni Buj Gelonch <[email protected]>2020-06-18 10:48:28 +0200
commit8712286c8dacfd0a448c86e7d282437abe854ab8 (patch)
tree4197e2bf52140115748322f25e99a1075a4d343e /libdocument/ev-document.c
parentd1f4707aad8a1ecad412295d2ccd3f7aa87b95b0 (diff)
downloadatril-8712286c8dacfd0a448c86e7d282437abe854ab8.tar.bz2
atril-8712286c8dacfd0a448c86e7d282437abe854ab8.tar.xz
Fix -Wunused-function warnings caused by --enable-synctex=no
Diffstat (limited to 'libdocument/ev-document.c')
-rw-r--r--libdocument/ev-document.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libdocument/ev-document.c b/libdocument/ev-document.c
index be082aeb..f7c87895 100644
--- a/libdocument/ev-document.c
+++ b/libdocument/ev-document.c
@@ -68,7 +68,9 @@ static void _ev_document_get_page_size (EvDocument *document,
static gchar *_ev_document_get_page_label (EvDocument *document,
EvPage *page);
static EvDocumentInfo *_ev_document_get_info (EvDocument *document);
+#ifdef ENABLE_SYNCTEX
static gboolean _ev_document_support_synctex (EvDocument *document);
+#endif
static GMutex ev_doc_mutex;
static GMutex ev_fc_mutex;
@@ -386,6 +388,8 @@ ev_document_get_page (EvDocument *document,
return klass->get_page (document, index);
}
+
+#ifdef ENABLE_SYNCTEX
static gboolean
_ev_document_support_synctex (EvDocument *document)
{
@@ -394,7 +398,6 @@ _ev_document_support_synctex (EvDocument *document)
return klass->support_synctex ? klass->support_synctex (document) : FALSE;
}
-#ifdef ENABLE_SYNCTEX
gboolean
ev_document_has_synctex (EvDocument *document)
{