Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2007-05-22 10:04:21 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2007-05-22 10:04:21 (GMT)
commitdf3510ed9fdf66e192f89e222a1dfc867af2729d (patch)
tree77e6881b5d491adfbef4e229ceb1f2ee44a4d036
parent55df2834052430d7ff694216ed7749c506d8ecbb (diff)
Fix build with current poppler from cvs head.
2007-05-22 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * backend/pdf/ev-poppler.cc: (pdf_selection_render_selection): Fix build with current poppler from cvs head. svn path=/trunk/; revision=2473
-rw-r--r--ChangeLog7
-rw-r--r--backend/pdf/ev-poppler.cc11
-rw-r--r--configure.ac1
3 files changed, 18 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4a3420a..feb0ceb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-05-22 Carlos Garcia Campos <carlosgc@gnome.org>
+
+ * configure.ac:
+ * backend/pdf/ev-poppler.cc: (pdf_selection_render_selection):
+
+ Fix build with current poppler from cvs head.
+
2007-05-21 Eduardo Lima <eduardo.lima@indt.org.br>
* libdocument/ev-file-helpers.c: (ensure_dir_exists):
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
index 1edbb48..6822464 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -1623,13 +1623,22 @@ pdf_selection_render_selection (EvSelection *selection,
TRUE, 8,
width, height);
}
-
+
+#ifdef HAVE_POPPLER_PAGE_RENDER_SELECTION_TO_PIXBUF
+ poppler_page_render_selection_to_pixbuf (POPPLER_PAGE (rc->data),
+ rc->scale, rc->rotation, *pixbuf,
+ (PopplerRectangle *)points,
+ (PopplerRectangle *)old_points,
+ text,
+ base);
+#else
poppler_page_render_selection (POPPLER_PAGE (rc->data),
rc->scale, rc->rotation, *pixbuf,
(PopplerRectangle *)points,
(PopplerRectangle *)old_points,
text,
base);
+#endif /* HAVE_POPPLER_PAGE_RENDER_SELECTION_TO_PIXBUF */
}
diff --git a/configure.ac b/configure.ac
index bdbe0d4..ce14c57 100644
--- a/configure.ac
+++ b/configure.ac
@@ -249,6 +249,7 @@ if test "x$enable_pdf" = "xyes"; then
AC_CHECK_FUNCS(poppler_page_render)
AC_CHECK_FUNCS(poppler_page_get_duration)
AC_CHECK_FUNCS(poppler_page_get_image_mapping)
+ AC_CHECK_FUNCS(poppler_page_render_selection_to_pixbuf)
LIBS=$evince_save_LIBS
PKG_CHECK_MODULES(CAIRO_PDF, cairo-pdf, enable_cairo_pdf=yes, enable_cairo_pdf=no)