Commit graph

22 commits

Author SHA1 Message Date
Sebastian Ramacher
8f3d20de88 Disable sandbox when detecting WSL (fixes pwmt/zathura#50) 2019-02-24 10:37:13 +01:00
Sebastian Ramacher
71e9ed2df3 Use SPDX license identifiers 2018-11-27 23:10:18 +01:00
Sebastian Ramacher
09d4370581 Fix invalid function pointer cast 2018-05-05 07:23:38 +02:00
Jeremie Knuesel
f1ebe9e5d5 Merge remote-tracking branch 'upstream/develop' into feature/physical-size 2018-02-23 15:47:52 +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
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
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
abd52e45fa Use new foreach macros
Also fixes some memory leaks.
2018-01-29 01:16:28 +01:00
Moritz Lipp
28337773ec Escape document index titles
Fixes #692
2017-10-30 15:57:19 +01:00
Sebastian Ramacher
b64b7132a2 Return const char
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-01-26 22:09:52 +01:00
Sebastian Ramacher
0e095c1a24 Use the last value for all unspecified pages per row
This change ensures that configs with "first-page-column=2" before 0.3.4 will
upgrade more sanely.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-04-03 20:38:51 +02:00
Sebastian Ramacher
4696e10cd8 Some clean up
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-04-01 17:19:39 +02:00
Sebastian Ramacher
8946015219 Fix return type
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-01-20 15:25:08 +01:00
Sebastian Ramacher
e550ab66ee Reduce amount of leaked memory by libmagic
libmagic always leaks 48 bytes. Now we leak those bytes only once instead of
every content type detection.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-01-20 13:45:51 +01:00
Sebastian Ramacher
b2189277bb Use g_strv_length
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-20 15:21:21 +01:00
Sebastian Ramacher
43244a67d2 Merge remote-tracking branch 'haggl/feature/toggle_page_mode_improvement' into develop 2015-11-12 22:15:18 +01:00
Sebastian Neuser
a9aa7e4ad2 Implement first page column list 2015-11-12 16:42:15 +01:00
Sebastian Ramacher
28d186c8bd Remove unused imports
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-11 21:31:34 +01:00
Sebastian Ramacher
229ff0ad9a Remove some extra allocations
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-11 21:26:56 +01:00
Sebastian Ramacher
2695a53bfc CS
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-11 21:08:53 +01:00
Sebastian Ramacher
5780a99291 Print target selection
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-12-08 00:31:47 +01:00
Moritz Lipp
a1a0e47148 Begin to update build-system 2014-11-07 15:57:46 +01:00
Renamed from utils.c (Browse further)