Commit graph

479 commits

Author SHA1 Message Date
Lucas Franceschino
776e3e6b65 free hitlist 2020-03-12 09:09:22 +01:00
Lucas Franceschino
9a7d1d1c47 fix synctex rectangles overlapping 2020-03-11 17:22:12 +01:00
Sebastian Ramacher
eab2479172 Some more clean up 2020-03-10 21:33:38 +01:00
Sebastian Ramacher
b8e82e8f91 Add missing return 2020-03-10 21:19:46 +01:00
Sebastian Ramacher
62a682d35e Add some consts and bail out early 2020-03-10 20:45:05 +01:00
Sebastian Ramacher
d63b704808 Simplify 2020-03-09 21:30:35 +01:00
Sebastian Ramacher
88e7c7afe8 Simplify 2020-03-09 21:15:27 +01:00
Sebastian Ramacher
76bc4638b8 Mark functions as static 2020-03-09 18:38:14 +01:00
Sebastian Ramacher
9a783fe202 Fix for condition 2020-03-09 18:31:14 +01:00
Sebastian Ramacher
cf69a2b79b Clear handle 2020-03-09 13:31:53 +01:00
Sebastian Ramacher
d80c654b8b Merge two ifs 2020-03-09 13:28:14 +01:00
Sebastian Ramacher
155e538d26 Remove empty statement 2020-03-09 13:24:14 +01:00
Miseran
e586178a18 Support recolor with transparency 2020-02-08 19:28:48 +01:00
Sebastian Ramacher
338986283e Fix type 2020-02-05 16:52:24 +01:00
Sebastian Ramacher
f04dc0062f Increase min difference to 2
Apparently this works around issue #94 for some people. Thanks to Consus
for the workaround.
2020-02-05 16:44:18 +01:00
Sebastian Ramacher
70cdc6577d Fix typos 2020-01-06 08:59:50 +01:00
Sebastian Ramacher
418e1fe30d Implement document hash support for plain backend (fixes pwmt/zathura#86) 2019-12-01 17:37:18 +01:00
Sebastian Ramacher
eaa60ca37e Implement document hash support for sqlite backend 2019-12-01 17:21:37 +01:00
Sebastian Ramacher
75bab3f525 Also print sqlite's error message 2019-12-01 17:21:14 +01:00
Sebastian Ramacher
af253296d9 Also use SHA256 of documents to lookup fileinfo 2019-12-01 17:20:51 +01:00
Sebastian Ramacher
f03e639560 Remove forward declarations 2019-12-01 17:08:17 +01:00
Sebastian Ramacher
9cc9774fe6 Add document hash 2019-12-01 17:02:12 +01:00
Sebastian Ramacher
1635059877 Remove forward declarations 2019-12-01 17:01:50 +01:00
Sebastian Ramacher
e4b21a0453 Simplify 2019-11-30 15:03:22 +01:00
Sebastian Ramacher
e8716d041c Fix warnings and errors 2019-11-30 14:39:24 +01:00
Sebastian Ramacher
9a4b7ebbde Use g_spawn_sync 2019-11-30 14:35:10 +01:00
Sebastian Ramacher
0fa26487fc Tell magic to handle errors as errors 2019-11-30 12:18:47 +01:00
Sebastian Ramacher
5a5ee06407 Simplify 2019-11-30 11:51:27 +01:00
Sebastian Ramacher
43144b23e8 Re-try with different methods if content type is not supported 2019-11-30 11:36:11 +01:00
Sebastian Ramacher
c998ad32b1 Keep track of all supported content types 2019-11-30 11:35:33 +01:00
Sebastian Ramacher
f9e5085700 Cache result of pow 2019-10-11 18:16:12 +02:00
Sebastian Ramacher
fdbac740ce Merge branch 'zoom-fix' into 'develop'
fix smooth zooming calculations

See merge request pwmt/zathura!23
2019-10-11 16:14:33 +00:00
Lukas K
0720525fea fix smooth zooming calculations 2019-10-11 00:46:14 +02:00
Sebastian Ramacher
e90755f06c Raise window on SyncteX actions (fixes pwmt/zathura#97) 2019-09-30 20:34:04 +02:00
Sebastian Ramacher
45ebce689b Error out with a more specific error message if synctex support not available 2019-09-11 16:32:29 +02:00
Sebastian Ramacher
3730e6a882 Fix expansion of ~ and ~user 2019-09-08 14:34:38 +02:00
Sebastian Ramacher
0d472ea477 Merge branch 'set-application-id' into 'develop'
Set application ID

See merge request pwmt/zathura!21
2019-08-07 18:37:01 +00:00
Ankur Sinha (Ankur Sinha Gmail)
8e272d65a4
Set application ID 2019-08-07 19:05:09 +01:00
Sebastian Ramacher
68a5b01d37 Mark as static 2019-06-01 11:17:28 +02:00
Sebastian Ramacher
e07792004d Also display other info at the end 2019-05-30 17:59:20 +02:00
Sebastian Ramacher
b73d60f916 Move author after keywords 2019-05-30 17:58:29 +02:00
Sebastian Ramacher
7235d12fd6 Order entries by meta_fields 2019-05-30 17:57:58 +02:00
Sebastian Ramacher
2c648556af Simplify 2019-05-30 17:52:37 +02:00
Sebastian Ramacher
c6cbb0f87c Add const modifier 2019-05-30 17:52:30 +02:00
Sebastian Ramacher
e6f916768f Add format to :info 2019-05-30 17:41:42 +02:00
Sebastian Ramacher
40acdde217 Simplify 2019-04-28 19:31:53 +02:00
Sebastian Ramacher
6ccfd7f958 Constify value 2019-04-28 18:31:53 +02:00
Jeremie Knuesel
5e957bc685 Fix cb_widget_configured signature: return false 2019-03-16 14:08:14 +01:00
Sebastian Ramacher
9e58d07515 Remove obsolete version check 2019-03-03 18:33:23 +01:00
Sebastian Ramacher
4824c70318 Remove support for old libsynctex
Debian buster will have a new enough libsynctex.
2019-03-03 18:33:23 +01:00
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