+2007-07-02 Carlos Garcia Campos <carlosgc@gnome.org>
+
+ * configure.ac:
+ * backend/pdf/ev-poppler.cc: (pdf_selection_render_selection):
+
+ Fix build with poppler 0.5.9.
+
2007-07-01 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-sidebar-links.c: (job_finished_callback):
TRUE, 8,
width, height);
}
-
+
+#if POPPLER_VERSION == 5
poppler_page_render_selection (POPPLER_PAGE (rc->data),
rc->scale, rc->rotation, *pixbuf,
(PopplerRectangle *)points,
(PopplerRectangle *)old_points,
text,
base);
+#else /* POPPLER_VERSION == 9 */
+ poppler_page_render_selection_to_pixbuf (POPPLER_PAGE (rc->data),
+ rc->scale, rc->rotation, *pixbuf,
+ (PopplerRectangle *)points,
+ (PopplerRectangle *)old_points,
+ POPPLER_SELECTION_NORMAL,
+ text,
+ base);
+#endif
}
if test "x$enable_pdf" = "xyes"; then
POPPLER_REQUIRED=0.5.4
- PKG_CHECK_MODULES(POPPLER, poppler-glib >= $POPPLER_REQUIRED,enable_pdf=yes,enable_pdf=no)
+ POPPLER_MAX_REQUIRED=0.5.9
+ PKG_CHECK_MODULES(POPPLER, poppler-glib >= $POPPLER_REQUIRED poppler-glib <= $POPPLER_MAX_REQUIRED, enable_pdf=yes,enable_pdf=no)
if test "x$enable_pdf" = "xyes"; then
AC_DEFINE([ENABLE_PDF], [1], [Enable pdf support.])
if test x$enable_cairo_pdf == xyes; then
AC_DEFINE([HAVE_CAIRO_PDF], [1], [defined if cairo-pdf is available])
fi
+
+ POPPLER_VERSION=`$PKG_CONFIG --modversion poppler-glib | sed 's/0\.5\.\([[49]]\)/\1/'`
+ AC_DEFINE_UNQUOTED(POPPLER_VERSION, $POPPLER_VERSION, [Poppler version.])
else
AC_MSG_WARN("PDF support is disabled since poppler-glib library version $POPPLER_REQUIRED or newer not found")
fi