[evince/gnome-2-26] [pdf] Fix build with poppler without cairo support
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: svn-commits-list gnome org
- Subject: [evince/gnome-2-26] [pdf] Fix build with poppler without cairo support
- Date: Thu, 14 May 2009 04:43:50 -0400 (EDT)
commit 1a246e48661e5a6a1d6a66af2babcf8f82a102b0
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Thu May 14 10:38:49 2009 +0200
[pdf] Fix build with poppler without cairo support
Fixes bug #582543
---
backend/pdf/ev-poppler.cc | 5 +++--
configure.ac | 1 +
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
index 3c39e59..03fb4a5 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -1232,10 +1232,11 @@ GdkPixbuf *
pdf_document_images_get_image (EvDocumentImages *document_images,
EvImage *image)
{
+ GdkPixbuf *retval = NULL;
+#ifdef HAVE_POPPLER_PAGE_GET_IMAGE
PdfDocument *pdf_document;
PopplerPage *poppler_page;
cairo_surface_t *surface;
- GdkPixbuf *retval = NULL;
pdf_document = PDF_DOCUMENT (document_images);
poppler_page = poppler_document_get_page (pdf_document->document,
@@ -1248,7 +1249,7 @@ pdf_document_images_get_image (EvDocumentImages *document_images,
}
g_object_unref (poppler_page);
-
+#endif
return retval;
}
diff --git a/configure.ac b/configure.ac
index e7eb1be..e298f1e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -345,6 +345,7 @@ if test "x$enable_pdf" = "xyes"; then
LIBS="$LIBS $POPPLER_LIBS"
AC_CHECK_FUNCS(poppler_page_render)
AC_CHECK_FUNCS(poppler_layers_iter_new)
+ AC_CHECK_FUNCS(poppler_page_get_image)
LIBS=$evince_save_LIBS
PKG_CHECK_MODULES(CAIRO_PDF, cairo-pdf, enable_cairo_pdf=yes, enable_cairo_pdf=no)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]