Sebastian Ramacher
d913eda04a
Simplify
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-06-24 19:46:09 +02:00
Sebastian Ramacher
cbfcd8a1b4
Remove unnecessary code
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-06-24 19:17:18 +02:00
Sebastian Ramacher
97cbbe7c06
More debug output
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-06-24 19:14:39 +02:00
Sebastian Ramacher
b85e8c389f
Add debug output
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-06-24 19:06:04 +02:00
Sebastian Ramacher
b93ebeb327
Merge branch 'develop' of git.pwmt.org:pwmt/zathura into develop
2016-05-31 23:34:33 +02:00
Sebastian Ramacher
c9672357d2
Include girara/session.h so that Window is available in any case
2016-05-29 12:05:21 +02:00
Sebastian Ramacher
0069ef2860
Simplify check
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-05-01 18:26:29 +02:00
Sebastian Ramacher
67d1131bbb
Fix infinite loop on NULL
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-04-29 20:48:49 +02:00
Sebastian Ramacher
2805cf1f2c
Use g_get_current_dir instead
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-04-29 19:25:29 +02:00
Sebastian Ramacher
d3612f3c9b
Remove useless g_strdup
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-04-29 18:57:35 +02:00
Sebastian Ramacher
25b276246b
More debug output
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-04-29 18:15:49 +02:00
Sebastian Ramacher
19429574f4
CS
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-04-29 18:14:59 +02:00
Sebastian Ramacher
c7236aa8da
Debug output for file completion
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-04-29 13:38:19 +02:00
Sebastian Ramacher
019416f943
Print debug output on invalid filemonitor type
2016-04-24 18:49:37 +02:00
Sebastian Ramacher
09c7f540ab
Refactor file monitor and add option to reload on SIGHUP
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-04-24 18:26:54 +02:00
Sebastian Ramacher
d428ba3c77
Fix a macro
2016-04-24 17:43:12 +02:00
Sebastian Ramacher
e70316b236
CS
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-04-23 23:59:06 +02:00
Sebastian Ramacher
7717d7691e
Fix typo
2016-04-23 23:58:50 +02:00
Sebastian Ramacher
f28d913ff9
Update string
2016-04-18 21:08:14 +02: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
Moritz Lipp
3bc1d819a4
Assign document object iff pages exist
...
Only saves the document object iff the opened document contains pages. In
addition a check is implemented such that the nrow calculation does not crash.
2016-03-09 16:21:48 +01:00
Sebastian Ramacher
898d348770
Reduce another #ifdef
2016-02-26 19:01:17 +01:00
Sebastian Ramacher
6c7479c35e
Make zathura_set_xid always available
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-02-26 18:59:24 +01:00
Sebastian Ramacher
0b45a313b7
Update macro name
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-02-26 18:29:22 +01:00
Sebastian Ramacher
1c9bc2dbcd
Check for integer overflow
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-02-26 18:22:12 +01:00
Sebastian Ramacher
bdceb15398
Switch to multiplicative zooming ( fixes #614 )
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-02-26 18:10:12 +01:00
Sebastian Ramacher
771e0513bb
Compare with fabs
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-02-25 00:06:26 +01:00
Sebastian Ramacher
9bfe4f222e
Simplify
2016-02-25 00:06:04 +01:00
Sebastian Ramacher
ea094f2393
Split off jumplist function declarations
2016-02-24 23:56:32 +01:00
Sebastian Ramacher
f6754d7a00
Split handle_method_call
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-02-24 23:22:15 +01:00
Sebastian Ramacher
eda1dcec63
Split out fileinfo save
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-02-24 22:57:01 +01:00
Sebastian Ramacher
1c6d31a8b1
Check if there is a database
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-02-19 10:03:56 +01:00
Louisvh
9af0064fe2
Added quickmark functions to bindable shortcuts.
...
`mark_add` and `mark_evaluate` are now available as rebindable
shortcuts. Also added an entry in the zathurarc.5 manpage.
2016-02-05 04:18:56 +01:00
Louisvh
ec615d562f
Removed unnecessary ifdef, fixed compiler warning
...
If WITH_SYNCTEX is not defined, synctex_editor will always be NULL, so
the ifdef is not needed. This gets rid of the "unused variable" warning
when compiling without synctex.
2016-02-05 04:05:13 +01:00
Sebastian Ramacher
80a0ae9f18
Fix some spelling mistakes
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-01-30 12:06:12 +01: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
d1c38a703c
Use GIO so we can later move the operation into the background
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-01-20 04:12:10 +01:00
Sebastian Ramacher
241d302b09
Fix memory leak
2016-01-20 04:11:51 +01:00
Sebastian Ramacher
48cf3a22e0
Error out earlier
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-01-20 02:43:56 +01:00
Sebastian Ramacher
0683b78f9d
Factor out some code in separate functions
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-01-20 02:43:20 +01:00
Sebastian Ramacher
2da759149b
Remove signal handler when closing
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-01-20 02:21:15 +01:00
Sebastian Ramacher
274809be41
Remove another #ifdef
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-01-20 02:06:09 +01:00
Sebastian Ramacher
ec5268a975
Reduce some of the #ifdef madness
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-01-20 01:57:56 +01:00
Sebastian Ramacher
564ae2bdd6
Children should not fork
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-01-18 12:42:05 +01:00
Sebastian Ramacher
fec81cf40b
Ignore extra -- from g_option_context_parse
...
Debian bug #811032
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-01-15 02:02:39 +01:00
Sebastian Ramacher
aecb648374
Fix issues from clang-tidy
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-01-09 15:28:10 +01:00
Sebastian Ramacher
f1d027e656
Exit without failure if instance found
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-01-09 15:11:48 +01:00
Sebastian Ramacher
3dd360a27d
Fail if pid is given but there is something wrong with the given pid
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-01-09 15:09:03 +01:00