]> www.fi.muni.cz Git - evince.git/commitdiff
[pdf] Fix build with poppler without cairo support
authorCarlos Garcia Campos <carlosgc@gnome.org>
Thu, 14 May 2009 08:38:49 +0000 (10:38 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Thu, 14 May 2009 08:42:56 +0000 (10:42 +0200)
Fixes bug #582543

backend/pdf/ev-poppler.cc
configure.ac

index 3c39e5960b866b2050eb5bc5f40c596bc38d971d..03fb4a5af7333b68251fd6852497d9c15e81e02d 100644 (file)
@@ -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;
 }
 
index e7eb1be911e920f9e7a2dbe9b94f7baed807098a..e298f1ef641550e87794f94e9477e8715169d280 100644 (file)
@@ -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)