xz: change to new library paths
[unleashed-userland.git] / components / evince / patches / evince-06-new-poppler-api-update.patch
blob94774df665baf1711809fff93e08126b8ec5085e
1 https://bugzilla.gnome.org/show_bug.cgi?id=638312
2 Patch is borrowed from Ubuntu
4 --- evince-2.32.0.orig/configure.ac
5 +++ evince-2.32.0/configure.ac
6 @@ -505,6 +505,7 @@ if test "x$enable_pdf" = "xyes"; then
7 AC_CHECK_FUNCS(poppler_page_get_text_layout)
8 AC_CHECK_FUNCS(poppler_page_get_selected_text)
9 AC_CHECK_FUNCS(poppler_page_add_annot)
10 + AC_CHECK_FUNCS(poppler_document_is_linearized)
11 LIBS=$evince_save_LIBS
12 PKG_CHECK_MODULES(CAIRO_PDF, cairo-pdf, enable_cairo_pdf=yes, enable_cairo_pdf=no)
13 if test x$enable_cairo_pdf = xyes; then
14 --- evince-2.32.0.orig/backend/pdf/ev-poppler.cc
15 +++ evince-2.32.0/backend/pdf/ev-poppler.cc
16 @@ -640,7 +640,9 @@ pdf_document_get_info (EvDocument *docum
17 PopplerPermissions permissions;
18 EvPage *page;
19 char *metadata;
21 +#ifdef HAVE_POPPLER_DOCUMENT_IS_LINEARIZED
22 +gboolean linearized;
23 +#endif
24 info = g_new0 (EvDocumentInfo, 1);
26 info->fields_mask = EV_DOCUMENT_INFO_TITLE |
27 @@ -676,7 +678,11 @@ pdf_document_get_info (EvDocument *docum
28 "producer", &(info->producer),
29 "creation-date", &(info->creation_date),
30 "mod-date", &(info->modified_date),
31 +#ifdef HAVE_POPPLER_DOCUMENT_IS_LINEARIZED
32 + "linearized", &linearized,
33 +#else
34 "linearized", &(info->linearized),
35 +#endif
36 "metadata", &metadata,
37 NULL);
39 @@ -782,6 +788,11 @@ pdf_document_get_info (EvDocument *docum
40 info->security = g_strdup (_("No"));
43 +#ifdef HAVE_POPPLER_DOCUMENT_IS_LINEARIZED
44 + info->linearized = linearized ? g_strdup (_("Yes")) : g_strdup (_("No"));
45 +#endif
48 return info;