Sebastian Ramacher
9fe07d39d0
Improve memory layout of zathura_link_t
2019-03-03 18:13:18 +01:00
Sebastian Ramacher
d9c852e75e
Store links in slice
2019-03-03 18:13:18 +01:00
Sebastian Ramacher
ba9ece2bd3
Clean up
2019-03-03 17:59:38 +01:00
Sebastian Ramacher
be73995f42
Add debug output when following links
2019-03-03 17:49:02 +01:00
Sebastian Ramacher
54660f5b17
Use same code path as ZATHURA_LINK_LAUNCH
2019-02-24 19:06:33 +01:00
Sebastian Ramacher
3f2001e6bc
Execute xdg-open in directory of current file instead of messing with path ( fixes pwmt/zathura#58 )
2019-02-24 19:05:55 +01:00
Sebastian Ramacher
f938f4769c
Prevent launching of any other application in strict sandbox mode
2019-02-24 18:04:42 +01:00
Sebastian Ramacher
8f3d20de88
Disable sandbox when detecting WSL ( fixes pwmt/zathura#50 )
2019-02-24 10:37:13 +01:00
Sebastian Ramacher
32dfdc0dd3
Check if ALTER is supported
2019-01-20 20:12:36 +01:00
Sebastian Ramacher
797535aceb
Set busy timeout to 1 second
2019-01-20 19:30:22 +01:00
Sebastian Ramacher
b4afb54281
Improve warnings in case of an error
2019-01-20 18:42:20 +01:00
Sebastian Ramacher
cebfaf016d
Track layout version and only update if necessary
2019-01-20 18:36:04 +01:00
Sebastian Ramacher
b1ff520277
Use LOCK_{SH,EX} on Hurd
2019-01-20 17:35:32 +01:00
Sebastian Ramacher
34ee70f3d6
Check locking errors
2019-01-18 21:14:10 +01:00
Sebastian Ramacher
a8f377f0fe
Pass address
2019-01-18 21:09:56 +01:00
Sebastian Ramacher
615143bf56
Wait for lock
2019-01-18 20:45:54 +01:00
Sebastian Ramacher
7279268933
Remove unlock
...
Locks will be released on close.
2019-01-18 20:45:45 +01:00
Sebastian Ramacher
cc39352485
Replace macro
2019-01-18 20:30:02 +01:00
Sebastian Ramacher
5923d9acb1
CS
2018-12-11 01:09:35 +01:00
Sebastian Ramacher
08b1d829ef
Simplify rules handling
2018-11-28 00:23:06 +01:00
Sebastian Ramacher
875108c911
Extend error messages
2018-11-28 00:06:50 +01:00
Sebastian Ramacher
2877694d0a
Avoid second call to g_ascii_strtoll
2018-11-27 23:45:54 +01:00
Sebastian Ramacher
b0b05d9aa1
Avoid calling getters twice
2018-11-27 23:20:28 +01:00
Sebastian Ramacher
71e9ed2df3
Use SPDX license identifiers
2018-11-27 23:10:18 +01:00
Sebastian Ramacher
fac4f7fea3
Print an error a more specific error if init fails
2018-11-02 07:23:12 +01:00
Sebastian Ramacher
4fd6736a27
Simplify check
2018-10-02 01:32:08 +02:00
Sebastian Ramacher
f64f8c3947
Add new value to filemonitor setting
2018-09-17 23:00:56 +02:00
Sebastian Ramacher
47469cf2eb
Fix typo
2018-09-17 22:58:28 +02:00
Sebastian Ramacher
928aab913b
Implement noop file monitor
2018-09-17 22:58:28 +02:00
Sebastian Ramacher
538d18039e
Store page_right_to_left in sqlite database
2018-09-11 12:46:57 +02:00
Naohiro Aota
2df776b329
Add option for right-to-left layout ( fixes #754 )
2018-09-11 12:46:57 +02:00
Sebastian Ramacher
3d12dbc51f
Add option to update window icon based on first page of a document ( fixes pwmt/zathura#8 )
2018-09-10 23:07:42 +02:00
Sebastian Ramacher
448a7cb57d
Add option to request "plain" rendering of a page
...
"Plain" in this context means without any recoloring or rescaling.
2018-09-10 23:06:57 +02:00
Sebastian Ramacher
36cd8da61f
CS
2018-09-10 23:05:25 +02:00
Sebastian Ramacher
ea942228e7
Re-factor renderer setup
2018-09-10 22:32:11 +02:00
Sebastian Ramacher
a1a7465d5f
Move typedef
2018-09-10 22:31:40 +02:00
Sebastian Ramacher
16bc86c195
Re-factor
2018-09-10 21:36:21 +02:00
Sebastian Ramacher
5291634f77
Add missing call to G_ADD_PRIVATE ( fix pwmt/zathura#35 )
2018-09-10 18:05:17 +02:00
Sebastian Ramacher
8272e37f3a
Trigger window title and status bar update if some of the window- and statusbar- options change ( fixes : pwmt/zathura#31 )
2018-09-06 22:51:22 +02:00
Sebastian Ramacher
a4d1df87db
Use G_ADD_PRIVATE
...
Fix deprecation warnings with glib 2.58.
2018-09-05 10:57:22 +02:00
Sebastian Ramacher
bab5848464
Update copyright years
2018-09-04 18:00:48 +02:00
valoq
6efe9cbdcb
add missing syscall
2018-08-06 17:27:14 +02:00
Sebastian Ramacher
4cecf5388d
Fix size checks
2018-07-30 11:52:10 +02:00
valoq
0e5dc9f284
seccomp fixes
2018-07-08 12:17:53 +02:00
Sebastian Ramacher
2a48d2df0f
Cast to the correct type
...
CID 276632
2018-06-22 00:34:29 +02:00
Sebastian Ramacher
a0953f2a16
Cast to correct type
...
CID 276635
2018-06-22 00:32:52 +02:00
Sebastian Ramacher
9faba797e8
Remove dead code
...
CID 276638
2018-06-22 00:27:15 +02:00
Sebastian Ramacher
16e7dde9ed
Handle CSS errors
2018-06-12 08:29:57 +02:00
Sebastian Ramacher
e6661bc648
Handle girara_replace_substring failures more gracefully
2018-06-02 21:42:30 +02:00
Sebastian Ramacher
6efa1a2851
Check if input_file is non-NULL
2018-06-02 21:34:41 +02:00
Sebastian Ramacher
43139d88cd
Use correct constant
2018-06-02 20:31:15 +02:00
Sebastian Ramacher
ae07020a0d
Print debug entry on unspecified synctex editor
2018-06-02 20:29:38 +02:00
Sebastian Ramacher
18ae9da3e1
Check sandbox mode before running xdg-open
2018-06-02 11:14:35 +02:00
Sebastian Ramacher
abb76d8dfe
Refactor
2018-06-02 11:12:56 +02:00
Sebastian Ramacher
2899daa838
Remove forward declarations
2018-06-02 11:02:08 +02:00
Sebastian Ramacher
aa6b9da462
Fix error message
2018-06-01 21:49:15 +02:00
Sebastian Ramacher
dea3e200ea
Log g_spawn_async error
2018-06-01 21:42:22 +02:00
Sebastian Ramacher
8735ccfcbb
Log g_spawn_async error
2018-06-01 21:34:47 +02:00
Sebastian Ramacher
b62a3d4c31
Consistent nameing with -p
2018-05-26 20:40:05 +02:00
Sebastian Ramacher
4e222933cc
Merge branch 'mbakke/zathura-plugindir' into develop
2018-05-26 09:45:43 +02:00
valoq
193b825ddd
check sandbox cleanup
2018-05-25 21:05:41 +02:00
valoq
346536564b
sandbox fixes
2018-05-25 20:47:54 +02:00
Sebastian Ramacher
df3297c4bb
Clean up
2018-05-23 22:37:27 +02:00
Sebastian Ramacher
0d8a0db735
Simplify
2018-05-23 22:37:15 +02:00
Sebastian Ramacher
9fe6a4a2d6
CS
...
Signed-off-by: Sebastian Ramacher <sebastian@ramacher.at>
2018-05-23 11:50:21 +02:00
Sebastian Ramacher
5fffa40715
Translate string
2018-05-23 11:50:21 +02:00
Sebastian Ramacher
49c2d88ce6
Move seccomp filter setup after config file handling
2018-05-22 17:53:47 +02:00
Sebastian Ramacher
0dfafe6cfb
Store sandbox mode
2018-05-22 17:45:22 +02:00
Sebastian Ramacher
09d4370581
Fix invalid function pointer cast
2018-05-05 07:23:38 +02:00
Sebastian Ramacher
a8cb8d396b
Remove forward declarations
2018-04-26 17:05:47 +02:00
Sebastian Ramacher
3a68be9a9b
Correctly store print settings
2018-04-26 16:53:10 +02:00
Sebastian Ramacher
68222109f5
Pass parent window to gtk_print_operation_run ( fixes #726 )
2018-04-26 16:52:50 +02:00
Sebastian Ramacher
c97d83f6ce
Port to newer libsynctex
2018-04-21 13:11:10 +02:00
Sebastian Ramacher
acf9a3bcc1
Fix typos
2018-04-15 23:54:09 +02:00
valoq
6d99a74d1a
add missing syscall
2018-04-14 10:01:17 -04:00
Sebastian Ramacher
cb1cab71c8
Make some variables const
2018-04-11 13:10:42 -04:00
Marius Bakke
be8084d5f2
Add a search path for ZATHURA_PLUGIN_PATH.
2018-03-28 16:46:19 +02:00
Sebastian Ramacher
6976707376
Limit decimal part
2018-03-18 19:22:49 +01:00
Sebastian Ramacher
63ef90697e
Fix typo in comment
2018-03-18 19:16:43 +01:00
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