diff options
Diffstat (limited to 'backend/pdf')
-rw-r--r-- | backend/pdf/Makefile.am | 4 | ||||
-rw-r--r-- | backend/pdf/ev-poppler.cc | 21 | ||||
-rw-r--r-- | backend/pdf/ev-poppler.h | 1 | ||||
-rw-r--r-- | backend/pdf/meson.build | 30 |
4 files changed, 47 insertions, 9 deletions
diff --git a/backend/pdf/Makefile.am b/backend/pdf/Makefile.am index e51dfdca..4934a31d 100644 --- a/backend/pdf/Makefile.am +++ b/backend/pdf/Makefile.am @@ -30,6 +30,10 @@ EXTRA_DIST = $(backend_in_files) CLEANFILES = $(backend_DATA) $(backend_DATA): $(backend_in_files) +if USE_NLS $(AM_V_GEN) $(MSGFMT) --desktop --keyword=TypeDescription --template $< -d $(top_srcdir)/po -o $@ +else + $(AM_V_GEN) cp -f $< $@ +endif -include $(top_srcdir)/git.mk diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc index be08719b..32005dd8 100644 --- a/backend/pdf/ev-poppler.cc +++ b/backend/pdf/ev-poppler.cc @@ -1095,18 +1095,18 @@ ev_link_from_action (PdfDocument *pdf_document, break; case POPPLER_ACTION_GOTO_DEST: { EvLinkDest *dest; - + dest = ev_link_dest_from_dest (pdf_document, action->goto_dest.dest); ev_action = ev_link_action_new_dest (dest); } break; case POPPLER_ACTION_GOTO_REMOTE: { EvLinkDest *dest; - + dest = ev_link_dest_from_dest (pdf_document, action->goto_remote.dest); - ev_action = ev_link_action_new_remote (dest, + ev_action = ev_link_action_new_remote (dest, action->goto_remote.file_name); - + } break; case POPPLER_ACTION_LAUNCH: @@ -1170,19 +1170,24 @@ ev_link_from_action (PdfDocument *pdf_document, case POPPLER_ACTION_JAVASCRIPT: unimplemented_action = "POPPLER_ACTION_JAVASCRIPT"; break; +#if POPPLER_CHECK_VERSION(0,90,0) + case POPPLER_ACTION_RESET_FORM: + unimplemented_action = "POPPLER_ACTION_RESET_FORM"; + break; +#endif /* POPPLER_CHECK_VERSION(0,90,0) */ case POPPLER_ACTION_UNKNOWN: unimplemented_action = "POPPLER_ACTION_UNKNOWN"; } - + if (unimplemented_action) { g_warning ("Unimplemented action: %s, please post a bug report " "on Atril bug tracker (https://github.com/mate-desktop/atril/issues) " "with a testcase.", unimplemented_action); } - + link = ev_link_new (action->any.title, ev_action); - - return link; + + return link; } static void diff --git a/backend/pdf/ev-poppler.h b/backend/pdf/ev-poppler.h index c70fc7d0..8f98fa02 100644 --- a/backend/pdf/ev-poppler.h +++ b/backend/pdf/ev-poppler.h @@ -34,7 +34,6 @@ GType pdf_document_get_type (void) G_GNUC_CONST; G_MODULE_EXPORT GType register_atril_backend (GTypeModule *module); - G_END_DECLS #endif /* __PDF_DOCUMENT_H__ */ diff --git a/backend/pdf/meson.build b/backend/pdf/meson.build new file mode 100644 index 00000000..2a81d71a --- /dev/null +++ b/backend/pdf/meson.build @@ -0,0 +1,30 @@ +pdf_sources = [ + 'ev-poppler.cc', + 'ev-poppler.h' +] + +pdf_deps = [ + gtk, + xml, + poppler, +] + +shared_module( + 'pdfdocument', + pdf_sources, + link_with: [libdocument], + link_args: ['-Wl,-Bsymbolic', '-Wl,-z,relro', '-Wl,-z,now'], + include_directories: include_dirs, + dependencies: pdf_deps, + install: true, + install_dir: backendsdir, +) + +i18n.merge_file( + input: 'pdfdocument.atril-backend.desktop.in', + output: 'pdfdocument.atril-backend', + type: 'desktop', + po_dir: po_dir, + install: true, + install_dir: backendsdir, +) |