diff options
author | marcus <marcus@FreeBSD.org> | 2007-09-11 14:31:24 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2007-09-11 14:31:24 +0800 |
commit | 069f2887ad4ae80f1370aec59fb7509597744a87 (patch) | |
tree | 7c101eb7f105944b1074ee9b128ad6fcda04c999 /graphics/evince/files | |
parent | 296bd003f42e740306b6fe4c65f5ca042815a753 (diff) | |
download | freebsd-ports-gnome-069f2887ad4ae80f1370aec59fb7509597744a87.tar.gz freebsd-ports-gnome-069f2887ad4ae80f1370aec59fb7509597744a87.tar.zst freebsd-ports-gnome-069f2887ad4ae80f1370aec59fb7509597744a87.zip |
Fix build with new poppler.
Diffstat (limited to 'graphics/evince/files')
-rw-r--r-- | graphics/evince/files/patch-backend_pdf_ev-poppler.cc | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/graphics/evince/files/patch-backend_pdf_ev-poppler.cc b/graphics/evince/files/patch-backend_pdf_ev-poppler.cc new file mode 100644 index 000000000000..b0b698b531fd --- /dev/null +++ b/graphics/evince/files/patch-backend_pdf_ev-poppler.cc @@ -0,0 +1,38 @@ +--- backend/pdf/ev-poppler.cc.orig 2007-09-11 02:17:19.000000000 -0400 ++++ backend/pdf/ev-poppler.cc 2007-09-11 02:22:10.000000000 -0400 +@@ -654,7 +654,7 @@ pdf_document_get_text (EvDocument *docum + r.x2 = rect->x2; + r.y2 = height - rect->y1; + +- text = poppler_page_get_text (poppler_page, &r); ++ text = poppler_page_get_text (poppler_page, POPPLER_SELECTION_GLYPH, &r); + + g_object_unref (poppler_page); + +@@ -1636,7 +1636,7 @@ pdf_selection_render_selection (EvSelect + rc->scale, rc->rotation, *pixbuf, + (PopplerRectangle *)points, + (PopplerRectangle *)old_points, +- POPPLER_SELECTION_NORMAL, ++ POPPLER_SELECTION_GLYPH, + text, + base); + #endif +@@ -1655,7 +1655,7 @@ pdf_selection_get_selection_region (EvSe + + set_rc_data (pdf_document, rc); + +- retval = poppler_page_get_selection_region ((PopplerPage *)rc->data, rc->scale, (PopplerRectangle *) points); ++ retval = poppler_page_get_selection_region ((PopplerPage *)rc->data, rc->scale, POPPLER_SELECTION_GLYPH, (PopplerRectangle *) points); + + return retval; + } +@@ -1676,7 +1676,7 @@ pdf_selection_get_selection_map (EvSelec + points.x1 = 0.0; + points.y1 = 0.0; + poppler_page_get_size (poppler_page, &(points.x2), &(points.y2)); +- retval = poppler_page_get_selection_region (poppler_page, 1.0, &points); ++ retval = poppler_page_get_selection_region (poppler_page, 1.0, POPPLER_SELECTION_GLYPH, &points); + g_object_unref (poppler_page); + + return retval; |