Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zathura-pdf-poppler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwmt
zathura-pdf-poppler
Commits
53d67187
Commit
53d67187
authored
Aug 30, 2012
by
Moritz Lipp
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop'
parents
2beaa7f5
3c29431d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
config.mk
config.mk
+6
-5
pdf.c
pdf.c
+7
-0
No files found.
config.mk
View file @
53d67187
...
...
@@ -2,26 +2,27 @@
VERSION_MAJOR
=
0
VERSION_MINOR
=
2
VERSION_REV
=
0
VERSION_REV
=
1
VERSION
=
${VERSION_MAJOR}
.
${VERSION_MINOR}
.
${VERSION_REV}
# minimum required zathura version
ZATHURA_MIN_VERSION
=
0.2.0
ZATHURA_VERSION_CHECK
?=
$(
shell
pkg-config
--atleast-version
=
$(ZATHURA_MIN_VERSION)
zathura
;
echo
$$
?
)
ZATHURA_GTK_VERSION
?=
$(
shell
pkg-config
--variable
=
GTK_VERSION zathura
)
# paths
PREFIX
?=
/usr
LIBDIR
?=
${PREFIX}
/lib
# libs
GTK_INC
?=
$(
shell
pkg-config
--cflags
gtk+-
2
.0
)
GTK_LIB
?=
$(
shell
pkg-config
--libs
gtk+-
2
.0
)
GTK_INC
?=
$(
shell
pkg-config
--cflags
gtk+-
${ZATHURA_GTK_VERSION}
.0
)
GTK_LIB
?=
$(
shell
pkg-config
--libs
gtk+-
${ZATHURA_GTK_VERSION}
.0
)
PDF_INC
?=
$(
shell
pkg-config
--cflags
poppler-glib
)
PDF_LIB
?=
$(
shell
pkg-config
--libs
poppler-glib
)
GIRARA_INC
?=
$(
shell
pkg-config
--cflags
girara-gtk
2
)
GIRARA_LIB
?=
$(
shell
pkg-config
--libs
girara-gtk
2
)
GIRARA_INC
?=
$(
shell
pkg-config
--cflags
girara-gtk
${ZATHURA_GTK_VERSION}
)
GIRARA_LIB
?=
$(
shell
pkg-config
--libs
girara-gtk
${ZATHURA_GTK_VERSION}
)
ZATHURA_INC
?=
$(
shell
pkg-config
--cflags
zathura
)
PLUGINDIR
?=
$(
shell
pkg-config
--variable
=
plugindir zathura
)
...
...
pdf.c
View file @
53d67187
...
...
@@ -30,10 +30,17 @@ poppler_link_to_zathura_link(PopplerDocument* poppler_document, PopplerAction*
switch
(
poppler_action
->
type
)
{
case
POPPLER_ACTION_GOTO_DEST
:
{
PopplerDest
*
poppler_destination
=
poppler_action
->
goto_dest
.
dest
;
if
(
poppler_destination
==
NULL
)
{
return
NULL
;
}
type
=
ZATHURA_LINK_GOTO_DEST
;
if
(
poppler_action
->
goto_dest
.
dest
->
type
==
POPPLER_DEST_NAMED
)
{
poppler_destination
=
poppler_document_find_dest
(
poppler_document
,
poppler_destination
->
named_dest
);
if
(
poppler_destination
==
NULL
)
{
return
NULL
;
}
}
PopplerPage
*
poppler_page
=
poppler_document_get_page
(
poppler_document
,
poppler_destination
->
page_num
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment