Commit graph

2814 commits

Author SHA1 Message Date
Andreas Perstinger
bb84bb4eaa Refactor handle_links
As soon as we found the link, we do not need to look any further.
2023-12-04 23:01:42 +01:00
Andreas Perstinger
a6859512b5 Refactor link shortcut functions
The three link shortcut functions `sc_follow`, `sc_display_link` and
`sc_copy_link` were almost identical.
2023-12-04 23:01:42 +01:00
Sebastian Ramacher
2b9b8a9c70 Add callback that clears highlighted links when inputbar is hidden
Since hiding the inputbar marks the end of the `follow a link` action,
clearing all links at that event ensures that it will work in all
possible situations.
2023-12-04 23:01:34 +01:00
Sebastian Ramacher
1e9b6a904f Merge branch 'configurable-modifiers' into 'develop'
Make modifiers configurable

See merge request pwmt/zathura!83
2023-12-04 00:55:21 +01:00
Sebastian Ramacher
fb3831b3fa Merge branch 'zathura-zoom-gesture' into develop (fixes #243) 2023-12-04 00:50:33 +01:00
Liao Junxuan
1419beccd0 Apply zoom limits to the zoom gesture 2023-12-04 00:49:06 +01:00
Liao Junxuan
5244b07d6a Add support for zoom gesture 2023-12-04 00:49:05 +01:00
Sebastian Ramacher
43a65ae878 Remove use of list iterator 2023-12-04 00:45:07 +01:00
Sebastian Ramacher
b88781114a Remove use of FORECH macros 2023-12-04 00:21:54 +01:00
Sebastian Ramacher
6bfb086b1e Remove use of FOREACH macros 2023-12-04 00:21:54 +01:00
Sebastian Ramacher
fa210e8d89 Remove use of FOREACH macros 2023-12-04 00:21:54 +01:00
Sebastian Ramacher
a7f6b74b7d Remove use of FOREACH macros 2023-12-04 00:21:54 +01:00
Sebastian Ramacher
139838b59a Remove use of FOREACH macros 2023-12-04 00:21:54 +01:00
Sebastian Ramacher
3841da009d Remove use of FOREACH macros 2023-12-04 00:21:54 +01:00
Sebastian Ramacher
61d6ff288f Remove use of FOREACH macros 2023-12-04 00:21:54 +01:00
Sebastian Ramacher
cb11a67add Remove use of FOREACH macros 2023-12-04 00:21:54 +01:00
Sebastian Ramacher
63c8c3f3e9 Remove use of FOREACH macros 2023-12-04 00:21:54 +01:00
Sebastian Ramacher
6170d701dc Remove use of FOREACH macros 2023-12-04 00:21:54 +01:00
Sebastian Ramacher
b90170a2fa Update format config 2023-12-04 00:21:54 +01:00
Sebastian Ramacher
365521ed46 Merge branch 'develop' into 'develop'
add ERRNO for fchmodat2

See merge request pwmt/zathura!82
2023-12-03 13:13:25 +01:00
Sebastian Ramacher
5012485b19 Merge branch 'dbus-variable' into 'develop'
Add $DBUS variable for exec

Closes #375

See merge request pwmt/zathura!85
2023-12-03 13:08:59 +01:00
Sebastian Ramacher
17cb9c82e2 Merge branch 'allow-vmsplice' into 'develop'
allow vmsplice in basic sandbox

Closes #387

See merge request pwmt/zathura!86
2023-12-03 13:07:31 +01:00
Jan Palus
c52142f6cf
allow vmsplice in basic sandbox
Fixes #387
2023-11-06 22:19:19 +01:00
blankie
89c47d106c
Add $DBUS variable for exec
Fixes #375
2023-09-25 14:00:29 +10:00
marcoe
8807d85d3c Update docs 2023-09-19 15:10:04 +02:00
marcoe
1a37050959 Sort doc options alphabetically 2023-09-19 14:48:06 +02:00
marcoe
68e985db91 Make modifiers configurable
In particular modifiers used to trigger the synctex edit action
and drawing with a highlighter.
2023-09-19 12:51:21 +02:00
valoq
c8ae0291ae
add ERRNO for fchmodat2 2023-09-18 20:08:15 +02:00
Sebastian Ramacher
9ab68dd1ee Merge branch 'feature-highlighter' into 'develop'
Bring back rectangle selection in a form of a highlighter

Closes #346 and #281

See merge request pwmt/zathura!81
2023-09-18 08:33:44 +02:00
Sebastian Ramacher
72533ba775 CI: reduce artifact lifetime 2023-09-15 09:21:32 +02:00
Sebastian Ramacher
ef52b08a22 Move girara-gtk3 and cairo to requires
They are always required so that the headers are useable.
2023-09-14 21:04:47 +02:00
marcoe
124e2db320 Update docs 2023-09-14 16:56:55 +02:00
marcoe
74bc8e05ba Bring back rectangle selection in a form of a highlighter 2023-09-14 16:53:33 +02:00
Sebastian Ramacher
1e9d9718fe Merge branch 'selection-fixes' into 'develop'
Selection fixes

Closes #347

See merge request pwmt/zathura!78
2023-09-13 23:01:16 +02:00
marcoe
d46f962562 Fix selection not working on a rotated page 2023-09-12 15:01:30 +02:00
marcoe
858673f74e Cleanup: use locally declared page whenever possible 2023-09-12 13:15:27 +02:00
marcoe
0b183eae2d Simplify mouse selection
Clear the whole page instead of a rectangular region when clearing
selection.  This fixes selection not being cleared after manipulating
the page (e.g. zooming, rotating) and occasional one pixel wide artifacts
due to floating point rounding.

Performance impact is negligible.
2023-09-12 13:05:28 +02:00
Sebastian Ramacher
06c4601210 Only run tests requring GTK under xvfb 2023-09-11 19:57:32 +02:00
Sebastian Ramacher
ff53e92665 Skip sandbox test if running under X11 2023-09-11 19:14:41 +02:00
Sebastian Ramacher
c5f315d712 Run tests under xvfb 2023-09-11 18:31:18 +02:00
Sebastian Ramacher
e0271bd3f4 Add json-glib 2023-09-11 17:31:52 +02:00
Sebastian Ramacher
3a3e03999a Expose document info via dbus (fixes #355)
The data is encoded as JSON and also includes the document index.
2023-09-11 17:28:20 +02:00
Sebastian Ramacher
6cddcbf353 Build with C17
All supported platforms have compilers supporting C17.
2023-09-11 10:23:32 +02:00
Sebastian Ramacher
2aef9ece6e Add dbus interface to load config (fixes #365) 2023-09-11 10:06:31 +02:00
Sebastian Ramacher
a6d19fccc1 Require meson >= 0.61 2023-09-07 19:18:01 +02:00
Sebastian Ramacher
ec4b8afd44 CI: drop focal, bullseye, add trixie 2023-09-07 18:47:35 +02:00
Sebastian Ramacher
c11ba01cfb Merge branch 'develop' into 'develop'
Remove flicker when reloading

Closes #268

See merge request pwmt/zathura!80
2023-09-07 18:32:46 +02:00
dogeystamp
257a2c968b Remove flicker when reloading 2023-09-07 18:32:46 +02:00
Sebastian Ramacher
c7baa2f68b Merge branch 'develop' into 'develop'
Make icon visible on dark backgrounds

See merge request pwmt/zathura!72
2023-07-27 18:37:18 +02:00
Sebastian Ramacher
a1b93ff180 Merge branch 'cleanup-cairo' into 'develop'
Clean up cairo error handling

See merge request pwmt/zathura!77
2023-07-27 18:33:50 +02:00