Sebastian Ramacher
02c30a7381
Simplify
2018-03-18 19:04:47 +01:00
Sebastian Ramacher
9e76d3eb4e
Use reasonable starting value
2018-03-18 18:28:16 +01:00
Sebastian Ramacher
3d4551b263
Check against DBL_EPSILON instead of 0
...
Also clean up some other bits of the recolor code.
2018-03-18 18:21:06 +01:00
Sebastian Ramacher
309c83d4ec
Fix typos in comments
2018-03-18 17:14:22 +01:00
Sebastian Ramacher
6f10064684
Fix typo
2018-03-18 10:35:12 +01:00
Sebastian Ramacher
c671672983
Add add the end
2018-03-11 20:56:11 +01:00
Sebastian Ramacher
b836503b17
Add default copyright headers
2018-03-11 16:29:26 +01:00
Sebastian Ramacher
abbd8d8550
CS
2018-03-11 16:27:16 +01:00
Sebastian Ramacher
d36c38ca48
Fix memory leak
2018-03-11 16:20:37 +01:00
Sebastian Ramacher
89831253f9
Apply coding standard
...
Changes include:
- use girara_error everywhere
- two space indentation
2018-03-11 16:18:19 +01:00
Sebastian Ramacher
3e841103ea
Add missing include
2018-03-11 16:18:19 +01:00
Sebastian Ramacher
d5030814c0
Rename to seccomp-filters
2018-03-11 16:18:19 +01:00
Sebastian Ramacher
6f14dfb914
Merge remote-tracking branch 'valoq/feature/seccomp' into HEAD
2018-03-11 16:17:56 +01:00
valoq
f101efe97e
fix print in strict sandbox mode
2018-03-11 16:10:57 +01:00
valoq
3d06164d71
bugfix
2018-03-11 12:26:26 +01:00
valoq
5a66aa92c0
cleanup and manpage
2018-03-11 12:21:13 +01:00
Sebastian Ramacher
b138553e1c
Break after first link
2018-03-10 11:49:16 +01:00
Sebastian Ramacher
72c2961b6d
Re-use values stored values
2018-03-10 11:49:05 +01:00
Sebastian Ramacher
8d1cfa8bdc
Add helper function to dup column text
2018-03-07 21:07:01 +01:00
Sebastian Ramacher
13cdf79472
Remove some indirections
...
Signed-off-by: Sebastian Ramacher <sebastian@ramacher.at>
2018-03-07 17:38:09 +01:00
Sebastian Ramacher
537a28e14c
Do not try .sos on macOS
2018-03-04 20:45:17 +01:00
Sebastian Ramacher
21276dfb9c
Explicitly export plugin API symbols
...
… and hide all others per default.
2018-03-04 17:21:29 +01:00
Sebastian Ramacher
5d898adda6
Factor out bookmark list creation
2018-03-04 15:45:22 +01:00
Sebastian Ramacher
8c245cd254
Remove useless cast
2018-03-04 15:43:58 +01:00
Sebastian Ramacher
67ef89b627
Re-arrange blocks
2018-03-04 15:43:49 +01:00
Sebastian Ramacher
0cb36b572e
Simplify
2018-03-04 15:43:29 +01:00
Sebastian Ramacher
67ca592a01
Compare constant bookmarks
2018-03-04 15:43:19 +01:00
Sebastian Ramacher
88937a0390
Update debug messages
2018-03-04 15:25:51 +01:00
Sebastian Ramacher
7e9e700744
Drop unused macro
2018-03-04 11:32:26 +01:00
Sebastian Ramacher
5baa31b83d
Avoid code duplication
...
We can use girara_list_foreach here and avoid the repeated
GIRARA_LIST_FOREACH_BODY overhead.
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-26 23:14:55 +01:00
Sebastian Ramacher
90533f6773
Free iterator before list
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-26 22:24:43 +01:00
Sebastian Ramacher
1ebf8f76f8
Set default window icon ( fixes : #207 )
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-25 22:27:56 +01:00
Sebastian Ramacher
96d3561fc9
Remove deprecated scale
...
All plugins have been fixed.
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-25 11:10:22 +01:00
Sebastian Ramacher
f82162a5ca
Mark scale as deprecated
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-23 16:34:05 +01:00
Jeremie Knuesel
f1ebe9e5d5
Merge remote-tracking branch 'upstream/develop' into feature/physical-size
2018-02-23 15:47:52 +01:00
Jeremie Knuesel
063b234a2a
Listen on configure event for PPI changes
...
This allows detection of a PPI change due to the window moving to
another monitor
2018-02-23 15:33:23 +01:00
Jeremie Knuesel
8e3f056121
If new PPI is significantly different, yes render and refresh
2018-02-23 15:26:43 +01:00
Jeremie Knuesel
1e170f0cab
Indentation fix
2018-02-23 15:02:06 +01:00
valoq
3f983e7ae2
added sandbox options to zathurarc
2018-02-22 14:28:22 +01:00
Sebastian Ramacher
dfc31a3fe1
Use zathura-version.h ( fixes #708 )
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-21 11:34:37 +01:00
Sebastian Ramacher
278eeb2077
Make nohlsearch shortcut available
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-20 23:26:53 +01:00
Sebastian Ramacher
9dde3d9d61
Implement nohlsearch shortcut
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-20 23:26:38 +01:00
Sebastian Ramacher
d3e06883f1
Include girara build and runtime version
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-20 23:18:30 +01:00
Sebastian Ramacher
102325a41e
Generate version.h as zathura-version.h
...
This avoid confusions between girara's and zathura's version.h.
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-20 21:42:43 +01:00
Sebastian Ramacher
f037679776
Merge branch 'feature/meson' into develop
2018-02-20 20:24:34 +01:00
valoq
c0bdd41630
fixed read only mode
2018-02-20 12:19:07 +01:00
Jeremie Knuesel
af90d4050d
Store monitors-changed handler for disconnection
2018-02-16 16:42:33 +01:00
Jeremie Knuesel
8b93be9471
Add scale/zoom union in link target
...
scale is now deprecated and plugins should use zoom instead
2018-02-15 18:07:20 +01:00
Sebastian Ramacher
a230bcced0
Remove empty line
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-15 12:09:03 +01:00
Sebastian Ramacher
bfdd4be4b2
Avoid explicit iterator
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-15 12:09:03 +01:00
Sebastian Ramacher
324d88100d
Mark functions as const
2018-02-15 12:09:03 +01:00
Jeremie Knuesel
09d8a37c8e
Add zoom column to sqlite database if missing
2018-02-13 20:00:56 +01:00
Jeremie Knuesel
4f3837c372
Remove Cairo 1.14 version checks
...
They're no longer needed since GTK+ 3.22 depends on Cairo >= 1.14
2018-02-12 15:18:18 +01:00
Jeremie Knuesel
1a12214a8c
Bump GTK+ to 3.22
2018-02-12 14:50:14 +01:00
Jeremie Knuesel
f6dd3682a8
Fix compilation for GTK+ < 3.22
2018-02-12 11:16:49 +01:00
Jeremie Knuesel
55055758fa
Assume PPI=100 (typical value) if info unavailable
2018-02-12 11:16:49 +01:00
Jeremie Knuesel
b4eca29d3a
Replace monitor "dpi" with "ppi"
...
This should avoid some confusion with the font DPI
2018-02-12 11:16:49 +01:00
Jeremie Knuesel
d625c0d9bd
Distinguish zoom and scale, always apply DPI correction on scale
...
Replace scale with zoom in most cases. Scale means pixels per point, as
before. The zoom is the screen-size / document-size ratio: a zoom of 1
means that the document should have the same size on screen as on paper.
This fixes many issues with the previous DPI changes, e.g. with link and
search rectangles.
2018-02-12 11:15:03 +01:00
Jeremie Knuesel
9bfefaf905
Check GTK+ version for monitor methods
2018-02-11 15:13:01 +01:00
Jeremie Knuesel
250547cabd
Use DPI to scale documents to physical size
2018-02-11 15:11:43 +01:00
Jeremie Knuesel
fc5a344dc1
Use signals to detect DPI change
2018-02-11 15:11:43 +01:00
Jeremie Knuesel
553a8ff428
Store monitor DPI in document structure
2018-02-11 15:11:37 +01:00
Jeremie Knuesel
ff679a310b
Comment fixes
2018-02-11 15:00:47 +01:00
Sebastian Ramacher
68ebb6f139
Debug output for content type mapping
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-10 21:13:30 +01:00
Sebastian Ramacher
4ea9d46584
Convert all MIME types to glib "content" types
...
On Linux they are the same, but somewhere else they might be different.
2018-02-10 21:09:22 +01:00
Sebastian Ramacher
21a9aed968
Fix return type
2018-02-10 13:31:13 +01:00
Sebastian Ramacher
b777e8487c
Remove extra defines
2018-02-10 13:31:06 +01:00
Sebastian Ramacher
85458ef87e
Convert to meson based build system
2018-02-10 13:27:45 +01:00
Sebastian Ramacher
49e1bd1b8c
Use consistent debug messages
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-08 21:36:54 +01:00
Sebastian Ramacher
a0a07be99d
Avoid explicit iterator
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-08 21:23:47 +01:00
Sebastian Ramacher
eb5c7079d2
Remove useless cast
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-08 21:16:06 +01:00
Sebastian Ramacher
821dc79117
Re-factor plugin loading
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-08 21:14:08 +01:00
Sebastian Ramacher
c46fc2a5ba
Remove extra new lines
2018-02-04 10:47:41 +01:00
Sebastian Ramacher
cb887221e1
Drop register function
...
Do not forget to bump ZATHURA_ABI_VERSION before the next release.
2018-02-03 14:28:35 +01:00
Sebastian Ramacher
ad49cfa419
Display page label
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-03 13:27:18 +01:00
Sebastian Ramacher
bba265ccfe
Add function to get page labels
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-03 13:27:07 +01:00
Sebastian Ramacher
a08150cfc6
Fix typo
2018-02-02 19:06:30 +01:00
Sebastian Ramacher
ba113fd21c
Warn if color cannot be parsed
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-02 18:52:30 +01:00
Sebastian Ramacher
a6e419d724
Merge branch 'yitzchak-fix-dbus-edit' into develop
2018-01-31 13:17:11 +01:00
Tarn Burton
658fd4fe3b
Pass line and column to Edit signal
2018-01-31 06:22:24 -05:00
Sebastian Ramacher
abd52e45fa
Use new foreach macros
...
Also fixes some memory leaks.
2018-01-29 01:16:28 +01:00
Sebastian Ramacher
93336db1b5
Start file monitor explicitly
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-01-29 00:04:43 +01:00
Sebastian Ramacher
8a003fb4cd
Add start and stop functions
2018-01-29 00:04:19 +01:00
Sebastian Ramacher
1dbec870cb
Rename arguments
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-01-29 00:04:00 +01:00
valoq
739a18540a
code cleanup
2018-01-28 15:50:00 +01:00
Sebastian Ramacher
0c7ed64c0a
Merge remote-tracking branch 'knuesel/feature/links-font' into develop
2018-01-26 20:20:13 +01:00
Jeremie Knuesel
76e5f7dc7a
Fix display of link hint
...
The link hint was truncated when the link rectangle was too small to
contain in. With this commit the link hint area is also redrawn.
2018-01-26 14:05:33 +01:00
Jeremie Knuesel
bab38fc636
Fix setting of link font
2018-01-26 14:03:37 +01:00
Sebastian Ramacher
c72e02d65d
Merge remote-tracking branch 'knuesel/feature/hidpi' into develop
2018-01-25 13:39:31 +01:00
Jeremie Knuesel
a7f42769c6
Fix GTK+ version in README, other minor fixes
...
Minor fixes include a rewording of "user size" to "unscaled size": Cairo
has user units, (unscaled) device units and (scaled) device pixels.
2018-01-25 08:40:54 +01:00
Sebastian Ramacher
19645cf608
Merge branch 'knuesel/zathura-feature/hidpi' into develop
2018-01-24 22:16:21 +01:00
Jeremie Knuesel
9752b8f03b
HiDPI: fix initial-zooming artifact
2018-01-24 21:48:20 +01:00
Jeremie Knuesel
4e9f8a7b1d
HiDPI: refactor handling of device scale factors
...
The document scale factors are now guaranteed to be non-zero.
A new Cairo helper function get_safe_device_factors() and a type
zathura_device_factors_t are introduced to simplify the code and avoid
some #ifdef blocks.
2018-01-24 21:48:20 +01:00
Jeremie Knuesel
9cf3239708
HiDPI: zero check using DBL_EPSILON
2018-01-23 22:38:45 +01:00
Jeremie Knuesel
e0cf06ff05
Remove HAVE_HIDPI_SUPPORT
...
One can simply check the Cairo version now that GTK+ has been bumped to
3.10.
2018-01-23 22:22:40 +01:00
Jeremie Knuesel
29b6e45c02
Bump GTK+ to 3.10
2018-01-23 22:19:02 +01:00
Jeremie Knuesel
e487df053d
HiDPI: use original notify callback signature
2018-01-23 21:55:12 +01:00
Jeremie Knuesel
7f4acdb0f4
HiDPI: fix thumbnail scaling
2018-01-23 11:34:22 +01:00
Jeremie Knuesel
36d9ece978
HiDPI: add preprocessor conditionals
2018-01-23 10:23:01 +01:00
Jeremie Knuesel
5fa4b8907e
HiDPI: watch GtkWidget scale-factor property
...
The scale-factor property is more specific than the GDK configure event
and is the recommended way to watch for scale factor changes.
2018-01-23 09:17:01 +01:00