|
|
5246fc |
From 22b047c3db84a34fc5fb5076474640bcd3917c73 Mon Sep 17 00:00:00 2001
|
|
|
5246fc |
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
|
|
|
5246fc |
Date: Fri, 17 Feb 2017 09:28:18 +0000
|
|
|
5246fc |
Subject: [PATCH] Revert "Bump poppler requirements to 0.33.0"
|
|
|
5246fc |
|
|
|
5246fc |
This reverts commit 5a4912bdbbf3c8000e77a093cf366276eeb56283.
|
|
|
5246fc |
---
|
|
|
5246fc |
backend/pdf/ev-poppler.cc | 4 ++++
|
|
|
5246fc |
configure.ac | 7 ++++++-
|
|
|
5246fc |
2 files changed, 10 insertions(+), 1 deletion(-)
|
|
|
5246fc |
|
|
|
5246fc |
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
|
|
|
5246fc |
index 214094f..f3a6510 100644
|
|
|
5246fc |
--- a/backend/pdf/ev-poppler.cc
|
|
|
5246fc |
+++ b/backend/pdf/ev-poppler.cc
|
|
|
5246fc |
@@ -3508,7 +3508,11 @@ pdf_document_annotations_save_annotation (EvDocumentAnnotations *document_annota
|
|
|
5246fc |
poppler_rect.y2 = height - ev_rect.y1;
|
|
|
5246fc |
|
|
|
5246fc |
if (poppler_annot_markup_has_popup (markup))
|
|
|
5246fc |
+#ifdef HAVE_POPPLER_ANNOT_MARKUP_SET_POPUP_RECTANGLE
|
|
|
5246fc |
poppler_annot_markup_set_popup_rectangle (markup, &poppler_rect);
|
|
|
5246fc |
+#else
|
|
|
5246fc |
+ poppler_annot_markup_set_popup (markup, &poppler_rect);
|
|
|
5246fc |
+#endif
|
|
|
5246fc |
else
|
|
|
5246fc |
poppler_annot_markup_set_popup (markup, &poppler_rect);
|
|
|
5246fc |
}
|
|
|
5246fc |
diff --git a/configure.ac b/configure.ac
|
|
|
5246fc |
index 23a390f..a01392a 100644
|
|
|
5246fc |
--- a/configure.ac
|
|
|
5246fc |
+++ b/configure.ac
|
|
|
5246fc |
@@ -536,7 +536,7 @@ AC_ARG_ENABLE([pdf],
|
|
|
5246fc |
[enable_pdf=yes])
|
|
|
5246fc |
|
|
|
5246fc |
if test "x$enable_pdf" = "xyes"; then
|
|
|
5246fc |
- POPPLER_REQUIRED=0.33.0
|
|
|
5246fc |
+ POPPLER_REQUIRED=0.24.0
|
|
|
5246fc |
PKG_CHECK_MODULES(POPPLER, poppler-glib >= $POPPLER_REQUIRED libxml-2.0 >= $LIBXML_REQUIRED,enable_pdf=yes,enable_pdf=no)
|
|
|
5246fc |
|
|
|
5246fc |
if test "x$enable_pdf" = "xyes"; then
|
|
|
5246fc |
@@ -549,6 +549,11 @@ if test "x$enable_pdf" = "xyes"; then
|
|
|
5246fc |
if test x$enable_cairo_ps = xyes; then
|
|
|
5246fc |
AC_DEFINE([HAVE_CAIRO_PS], [1], [defined if cairo-ps is available])
|
|
|
5246fc |
fi
|
|
|
5246fc |
+
|
|
|
5246fc |
+ evince_save_LIBS=$LIBS
|
|
|
5246fc |
+ LIBS="$LIBS $POPPLER_LIBS"
|
|
|
5246fc |
+ AC_CHECK_FUNCS(poppler_annot_markup_set_popup_rectangle)
|
|
|
5246fc |
+ LIBS=$evince_save_LIBS
|
|
|
5246fc |
else
|
|
|
5246fc |
AC_MSG_ERROR("PDF support is disabled since poppler-glib library version $POPPLER_REQUIRED or newer not found")
|
|
|
5246fc |
fi
|
|
|
5246fc |
--
|
|
|
5246fc |
2.9.3
|
|
|
5246fc |
|