Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2007-06-02 09:00:49 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2007-06-02 09:00:49 (GMT)
commit2fa78c4d755162b65978c1de43568742d075935a (patch)
tree3de8840a18d44ac7d07b65a20a10c0da0e131495 /backend
parentc500456e3448832c7fc0f4436fe5a335b4afca5c (diff)
Bump requirements to poppler 0.5.9 and drop all ifdefs used.
2007-06-02 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * backend/pdf/ev-poppler.cc: (pdf_document_images_get_images), (pdf_selection_render_selection), (pdf_document_get_page_duration): Bump requirements to poppler 0.5.9 and drop all ifdefs used. svn path=/trunk/; revision=2482
Diffstat (limited to 'backend')
-rw-r--r--backend/pdf/ev-poppler.cc17
1 files changed, 2 insertions, 15 deletions
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
index 6822464..a3549b2 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -1135,7 +1135,6 @@ pdf_document_images_get_images (EvDocumentImages *document_images,
gint page)
{
GList *retval = NULL;
-#ifdef HAVE_POPPLER_PAGE_GET_IMAGE_MAPPING
PdfDocument *pdf_document;
PopplerPage *poppler_page;
GList *mapping_list;
@@ -1164,7 +1163,7 @@ pdf_document_images_get_images (EvDocumentImages *document_images,
poppler_page_free_image_mapping (mapping_list);
g_object_unref (poppler_page);
-#endif /* HAVE_POPPLER_PAGE_GET_IMAGE_MAPPING */
+
return retval;
}
@@ -1624,21 +1623,13 @@ pdf_selection_render_selection (EvSelection *selection,
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,
+ POPPLER_SELECTION_NORMAL, /* SelectionStyle */
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 */
}
@@ -1694,7 +1685,6 @@ static gdouble
pdf_document_get_page_duration (EvDocumentTransition *trans,
gint page)
{
-#ifdef HAVE_POPPLER_PAGE_GET_DURATION
PdfDocument *pdf_document;
PopplerPage *poppler_page;
gdouble duration = -1;
@@ -1708,9 +1698,6 @@ pdf_document_get_page_duration (EvDocumentTransition *trans,
g_object_unref (poppler_page);
return duration;
-#else
- return -1;
-#endif /* HAVE_POPPLER_PAGE_GET_DURATION */
}
static void