Commit 2a5b7311 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Merge branch 'release/0.3.6' into master

parents a274d357 7e3571b7
......@@ -7,7 +7,7 @@ Requirements
------------
zathura (>= 0.2.0)
girara
mupdf (>= 1.14)
mupdf (>= 1.17)
Installation
------------
......
......@@ -7,4 +7,4 @@ Exec=zathura %U
Terminal=false
NoDisplay=true
Categories=Office;Viewer;
MimeType=application/pdf;application/oxps;application/epub+zip;
MimeType=application/pdf;application/oxps;application/epub+zip;application/x-fictionbook;
project('zathura-pdf-mupdf', 'c',
version: '0.3.5',
version: '0.3.6',
meson_version: '>=0.43',
default_options: 'c_std=c11'
default_options: ['c_std=c11', 'warning_level=3']
)
version = meson.project_version()
......@@ -59,9 +59,6 @@ defines = [
# compile flags
flags = [
'-Wall',
'-Wextra',
'-pedantic',
'-Werror=implicit-function-declaration',
'-Werror=vla',
'-fvisibility=hidden'
......
......@@ -65,9 +65,11 @@ build_index(fz_context* ctx, fz_document* document, fz_outline* outline, girara_
float x = 0;
float y = 0;
fz_location location = fz_resolve_link(ctx, document, outline->uri, &x, &y);
type = ZATHURA_LINK_GOTO_DEST;
target.destination_type = ZATHURA_LINK_DESTINATION_XYZ;
target.page_number = fz_resolve_link(ctx, document, outline->uri, &x, &y);
target.page_number = location.page;
target.left = x;
target.top = y;
target.zoom = 0.0;
......
......@@ -54,10 +54,11 @@ pdf_page_links_get(zathura_page_t* page, void* data, zathura_error_t* error)
float x = 0;
float y = 0;
fz_location location = fz_resolve_link(mupdf_document->ctx, mupdf_document->document, link->uri, &x, &y);
type = ZATHURA_LINK_GOTO_DEST;
target.destination_type = ZATHURA_LINK_DESTINATION_XYZ;
target.page_number = fz_resolve_link(mupdf_document->ctx,
mupdf_document->document, link->uri, &x, &y);
target.page_number = location.page;
target.left = x;
target.top = y;
target.zoom = 0.0;
......
......@@ -24,6 +24,8 @@ ZATHURA_PLUGIN_REGISTER_WITH_FUNCTIONS(
ZATHURA_PLUGIN_MIMETYPES({
"application/pdf",
"application/oxps",
"application/epub+zip"
"application/epub+zip",
"application/x-fictionbook",
"text/xml"
})
)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment