Blame SOURCES/0001-Revert-Bump-poppler-requirements-to-0.33.0.patch

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