Jeremie Knuesel
b5d0b28bb9
Implement support for HiDPI displays
2018-01-22 22:51:36 +01:00
qwence
51f4bba5f5
Cases for vertical_center were swapped
2018-01-03 20:38:38 +01:00
valoq
4bde3d793f
seccomp implementation
2017-12-30 13:46:07 +01:00
Sebastian Ramacher
9cd6353cf8
Save some allocations
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-12-09 11:35:01 +01:00
Sebastian Ramacher
9514ee4e9e
Make blist without arguments list all bookmarks ( fixes #697 )
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-12-09 11:25:13 +01:00
Moritz Lipp
28337773ec
Escape document index titles
...
Fixes #692
2017-10-30 15:57:19 +01:00
Sebastian Ramacher
93775267fc
Display notification after copying image
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-09-12 10:41:12 +02:00
Sebastian Ramacher
0fb57ad15c
Include interface specification in resource
...
This commit essentially reverts
4ee323a89a
. We now duplicate the data
again, but loading the interface specification from somewhere else does
not make much sense, since the specification must match the actually
implemented interface.
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-07-08 12:28:49 +02:00
Sebastian Ramacher
e28598a07d
Rename resources
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-07-08 12:19:05 +02:00
Sebastian Ramacher
1bf887edc5
Simplify
2017-06-30 20:24:32 +02:00
Sebastian Ramacher
30f5779828
CS
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-06-30 20:24:32 +02:00
Arkadiusz Drabczyk
7cf66fb685
Generate error when search fails
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-06-25 21:56:08 +02:00
Sebastian Ramacher
903548b902
Cast to correct type
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-06-20 21:31:31 +02:00
Sebastian Ramacher
e597921125
Fix placing of break
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-06-20 21:29:23 +02:00
Sebastian Ramacher
a3115e2c92
Clean up
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-06-13 19:48:28 +02:00
Sebastian Ramacher
801a28cdf4
Move mappings to girara
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-06-08 22:14:00 +02:00
Sebastian Ramacher
5a106c56f4
Also replace $FILE and % in shortcut
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-06-07 19:14:14 +02:00
Sebastian Ramacher
b4c87e05aa
CS
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-06-07 18:50:56 +02:00
Sebastian Ramacher
e49bc8aa4a
Sort list
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-06-07 13:14:59 +02:00
Sebastian Ramacher
2c6ab6b092
Use glib-compile-resource instead of sed magic
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-05-30 23:10:06 +02:00
Sebastian Ramacher
8c5b4a83cf
Add a const
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-05-22 11:29:09 +02:00
Deven Lahoti
4be0983080
add continuous history save
2017-05-21 15:57:58 -05:00
Sebastian Ramacher
19df03f0ff
Fix memory leak
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-05-02 21:57:33 +02:00
Sebastian Ramacher
39b54cddb3
Fix SQL statement
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-05-02 21:38:30 +02:00
Sebastian Ramacher
39cdfdb99a
Bind correctly
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-04-30 12:38:31 +02:00
Sebastian Ramacher
ae97de3ab5
Check basepath in database backend
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-04-30 12:07:29 +02:00
Sebastian Ramacher
1317675c47
Mark _get_types as G_GNUC_CONST
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-04-28 21:20:47 +02:00
Sebastian Ramacher
f477f7a2a6
Allow plugin init without calls back to the plugin
2017-03-17 19:28:55 +01:00
Sebastian Ramacher
63314cfbc9
Simplify
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-03-17 18:00:07 +01:00
Sebastian Ramacher
49aa419568
CS
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-02-23 18:50:12 +01:00
Deven Lahoti
9f3f5b34e2
add vertical centering option
2017-02-22 19:18:25 -05:00
Sebastian Ramacher
0ca4789d66
Print name instead of path
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-01-26 22:27:06 +01:00
Sebastian Ramacher
be7b4c1ad1
Replace plugin register function call with const struct
...
This gets rid of a lot of back and forth between zathura and the plugins.
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-01-26 22:23:12 +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
0263a7fa84
Fix memory leak on error
2017-01-24 23:59:18 +01:00
Sebastian Ramacher
7c5ec27314
Fix type
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-01-24 23:58:05 +01:00
Sebastian Ramacher
4ee323a89a
Load D-Bus interface XML data during runtime
...
We already install the XML data anyway, so there is no reason to ship it
twice (once in the binary and once as a file).
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-01-24 22:50:40 +01:00
Sebastian Ramacher
1ae7ac0b9c
Rename --debug to --log-level
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-01-06 20:11:54 +01:00
Sebastian Ramacher
16394a3a1f
Switch to log functions
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2017-01-06 20:09:03 +01:00
Sebastian Ramacher
17f0e740b4
Use g_build_filename isntead
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-12-20 00:48:42 +01:00
Sebastian Ramacher
0890d1bb19
Use symbolic constant
2016-12-04 12:10:29 +01:00
Felix Kaiser
49e96c68e5
Make clicking a page set the current page number
...
This allows fast visual navigation through the 'd'ouble page
shortcut in combination with a high pages-per-row setting.
Resolves #635
2016-12-03 19:08:16 +01:00
Felix Kaiser
2371550807
Make page mode toggling predictable
...
Previously, toggling page mode would jump to near page, but usually
not the one your were looking at before.
2016-12-03 19:08:16 +01:00
Sebastian Ramacher
6aa5420f37
Simplify
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-11-07 23:10:18 +01:00
Sebastian Ramacher
4341a09473
Use constant instead of magic value
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-11-07 22:56:26 +01:00
Sebastian Ramacher
79a5d1fa68
Use constant instead of magic value
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-11-07 22:54:33 +01:00
Sebastian Ramacher
40d032b034
Update check for context menu creation
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-11-07 22:48:41 +01:00
Sebastian Ramacher
2948580edd
Fix deprecation warning
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-11-07 22:45:09 +01:00
Sebastian Ramacher
9bc80b7733
Update handling of event == NULL
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-11-07 22:39:44 +01:00
Sebastian Ramacher
5026cbb9e3
Debug output
2016-11-06 23:39:27 +01:00
Sebastian Ramacher
527e260957
CS
2016-11-06 23:39:18 +01:00
Sebastian Ramacher
9b5dceac17
Debug output for sc_zoom
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-11-06 18:40:55 +01:00
Sebastian Ramacher
bcdc7aba05
Check adjust mode argument
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-11-06 18:23:25 +01:00
Sebastian Ramacher
10641d688d
CS
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-11-04 19:37:13 +01:00
Sebastian Ramacher
32607326a9
Fix more callback return types
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-10-25 21:04:30 +02:00
Sebastian Ramacher
9ee80714d4
Fix return type of callbacks
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-10-25 20:59:33 +02:00
Sebastian Ramacher
be717529c2
Remove function pointer casts
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-10-25 13:37:51 +02:00
Sebastian Ramacher
945929ce5f
Remove redundant check
2016-08-02 11:36:46 +02:00
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
Petr Šabata
b78be80d13
Build even without SyncTeX
...
synctex_editor is used no matter whether we're building WITH_SYNCTEX or
not. This fixes a build failure when WITH_SYNCTEX isn't defined.
Signed-off-by: Petr Šabata <contyk@redhat.com>
2015-12-21 16:57:59 +01:00
Sebastian Ramacher
601fb84048
Split cb_print_draw_page
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-12-21 03:06:54 +01:00
Sebastian Ramacher
6f6e8ea94e
Check errors of cairo_image_surface_create properly
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-12-21 02:23:27 +01:00
Sebastian Ramacher
f240bdb93c
Divide by 255
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-12-21 02:22:05 +01:00
Sebastian Ramacher
5afde94e3d
Manipulating data directly requires to call flush and mark_dirty
...
See documentation of cairo_image_surface_get_data.
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-12-21 02:01:48 +01:00
Sebastian Ramacher
14af953708
Merge remote-tracking branch 'carrotIndustries/develop' into develop
2015-12-09 00:30:32 +01:00
Lukas K
7dc30c9c14
move uri basename handling to zathura_document_open
2015-12-07 22:27:09 +01:00
Sebastian Ramacher
ca0b8e1953
Call correct free function
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-12-07 12:52:34 +01:00
Sebastian Ramacher
f1a5fb4544
Move jumplist code
2015-12-07 12:41:06 +01:00
Lukas K
337305457f
display uri in statusbar/title
2015-12-07 01:13:59 +01:00
Lukas K
859e0efa0f
open URLs from dbus
2015-12-06 21:27:18 +01:00
Sebastian Ramacher
73699b12ea
Handle URIs in :open
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-12-06 21:04:24 +01:00
Sebastian Ramacher
d895ad32a1
White spaces
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-12-06 20:23:18 +01:00
Sebastian Ramacher
73e8eedc35
Remove unused parameter
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-12-06 19:12:51 +01:00
Sebastian Ramacher
3d14894549
Revert parts of c3337bdd80
...
We still need a copy for the plugins.
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-12-06 17:38:14 +01:00
Sebastian Ramacher
c3337bdd80
Also handle file:// URIs
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-12-06 13:51:49 +01:00
Sebastian Ramacher
bf73069d14
Merge branch 'carrotIndustries/zathura-features/gio-download' into develop
2015-12-05 12:57:17 +01:00
Lukas K
1de8e2a568
add gio download
2015-12-02 22:56:47 +01:00
Sebastian Ramacher
b5df57c1e1
Use fork to start other instances
...
This should help with #472 when multiple files are opened.
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-24 01:03:38 +01:00
Sebastian Ramacher
12f57fb76a
Refactor
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-24 00:47:18 +01:00
Sebastian Ramacher
ba72d40fbd
Initialize GTK+ as late as possible ( fixes #471 )
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-24 00:34:55 +01:00
Sebastian Ramacher
96597253c8
Error messages if setsid or fork fail
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-23 23:55:45 +01:00
Sebastian Ramacher
32ad46441c
CS
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-23 23:28:45 +01:00
Sebastian Ramacher
138230c3cc
Fix error checking
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-23 23:16:14 +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
d7b06ca3fc
Require GTK+ 3.6
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-20 15:07:18 +01:00
Sebastian Ramacher
ff976d4854
Error handling
2015-11-20 14:57:47 +01:00
Sebastian Ramacher
7f38470a9e
Fix another invalid free
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-13 00:29:35 +01:00
Sebastian Ramacher
4a1852b02c
Move static variables to zathura instance
...
Fixes another memory leak.
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-12 23:32:59 +01:00
Sebastian Ramacher
4f6bd04f23
Move MIN and MAX
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-12 23:15:45 +01:00
Sebastian Ramacher
108533804b
Same consts
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-12 23:14:25 +01:00
Sebastian Ramacher
596262bb43
Fix invalid free
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-12 22:54:21 +01:00
Sebastian Ramacher
876d35de94
Fix memory leak
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-12 22:32:36 +01:00
Sebastian Ramacher
599e61ccf1
Use g_strlcat
...
It has a sane API.
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-12 22:28:52 +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 Neuser
7e2a18f7a8
Change type of first-page-column to char* / TEXT
2015-11-12 16:42:14 +01:00
Sebastian Neuser
924b7e0e60
shortcuts.c: Fix code comments
2015-11-12 15:08:06 +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
6d1e916a4f
Fix argument
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-20 22:01:51 +02:00
Sebastian Ramacher
f41fc252bd
Open password dialog after handling current input ( fixes #468 )
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-15 22:47:08 +02:00
Sebastian Ramacher
63e477fd41
Fix mutex clean up
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-11 22:28:09 +02:00
Sebastian Ramacher
083520cea6
Remove compat code for pre-2.32 glib
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-08 21:41:24 +02:00
Sebastian Ramacher
5c60ce4156
Get rid of embedded copy of libsynctex
...
TeXLive 2015 including libsynctex is out long enough.
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-08 21:26:22 +02:00
Sebastian Ramacher
66b9870d76
Pass arguments to spawned processes ( fixes #504 )
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-08 00:05:16 +02:00
Sebastian Ramacher
1652c2aab3
Auto start instance if --synctex-forward is passed but no instance exists
2015-10-07 22:55:35 +02:00
Sebastian Ramacher
264aaed0bd
Factor out highlight_rects
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-07 22:55:35 +02:00
Sebastian Ramacher
0ab1147543
Factor out SyncTeX string parsing
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-07 22:53:48 +02:00
Sebastian Ramacher
80582c9079
Check return value
2015-10-07 21:33:51 +02:00
Sebastian Ramacher
08b341d4f8
Use correct type
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-07 21:11:39 +02:00
Sebastian Ramacher
fdd843e116
Fix memory leak
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-07 20:48:34 +02:00
Sebastian Ramacher
ce7f53e5e9
Some clean up
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-07 20:22:15 +02:00
Sebastian Ramacher
013ac1f4b4
Fix a memory leak
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-07 20:18:33 +02:00
Sebastian Ramacher
05c44474d1
Simplify code a bit
2015-10-07 20:10:40 +02:00
Sebastian Ramacher
6a676cc5b5
Make get_formatted_filename static
...
It's only used in zathura.c
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-07 20:10:32 +02:00
Sebastian Ramacher
075924d108
Merge remote-tracking branch 'sid-kap/substitute_home_with_tilde' into develop
2015-10-07 20:06:52 +02:00
Sidharth Kapur
2b73bfb6bd
Use more glib functions
...
Also, check file_path_len >= home_len
2015-10-06 23:31:15 -05:00
Sidharth Kapur
93531c3eff
Use g_strdup instead of malloc+strcpy
2015-10-05 15:59:31 -05:00
Sidharth Kapur
8bc9aa8af7
Fix memory leak, use girara_get_home_directory
2015-10-05 15:49:04 -05:00
Sebastian Ramacher
f9d1d89bd4
Use the widget's display
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-05 21:14:54 +02:00
Sidharth Kapur
7991618d25
Implement tilde feature for statusbar as well
2015-10-05 10:37:25 -05:00
Sidharth Kapur
1be84c6c3b
Use glib malloc instead of malloc
2015-10-05 10:21:54 -05:00
Sidharth Kapur
7c3417bbe9
Remove unnecessary retrieval of settings
2015-10-01 17:12:04 -05:00
Sidharth Kapur
0c81a47eff
Use tilde-substitution in page number update
2015-10-01 17:10:47 -05:00
Sidharth Kapur
f1f65664da
Add feature to show ~ instead of $HOME in title
2015-10-01 16:55:07 -05:00
Sebastian Ramacher
7da7bcb4c1
Do not display recent files if there aren't any
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-07-26 23:38:10 +02:00
Sebastian Ramacher
5d490f6895
Fix sorting
2015-07-26 23:35:23 +02:00
Sebastian Ramacher
4f3b1b257b
Make show-recent both an option to show recent files and the maximum number to be shown
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-07-26 23:19:22 +02:00
Sebastian Ramacher
4e5ae52bc5
Display recent files in completion ( fixes #490 )
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-07-24 17:25:57 +02:00
Sebastian Ramacher
83fe96e814
Implement recent files
2015-07-24 17:20:17 +02:00
Sebastian Ramacher
6db534caea
Implement recent files support
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-07-24 17:19:58 +02:00
Sebastian Ramacher
47cd9b1895
List recent files
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-07-24 16:35:51 +02:00
Matthew hague
1cd609d33b
added bindings for ctrl-[/ctrl-c/esc and ctrl-j in index view
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-07-21 19:53:54 +02:00
Sebastian Ramacher
e7dce3e6d1
Merge remote-tracking branch 'haggl/feature/quit-in-index-mode' into develop
2015-05-08 18:36:31 +02:00
Sebastian Neuser
3c5e9e67ed
config.c: Add quit shortcut for index mode
2015-05-08 13:09:54 +02:00
MicheleSr
303277124b
replaced deprecated gdk_cursor_new()
...
replaced with gdk_cursor_new_for_display()
2015-04-28 23:32:50 +02:00
Sebastian Ramacher
0ed98dd959
Allow .dylib plugins on Mac OS X
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-04-10 16:03:49 +02:00
Lingzhu Xiang
c17c54c4a0
Fix dual page render breakge of adjust_window
...
When the page is set to adjust width to the window,
toggling dual page mode would break rendering because
sc_toggle_page_mode() did not update dimensions.
2015-02-05 17:37:40 -05:00
Sebastian Ramacher
12a9bf93ae
Demote info message to debug
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-01-20 21:43:47 +01:00
Moritz Lipp
676005ad99
Merge branch 'develop' of pwmt.org:zathura into develop
2015-01-20 21:38:10 +01:00
Moritz Lipp
cfc0c2aa7d
Don't free content_type before setting error message
2015-01-20 21:37:04 +01:00
Callum Burns
24c59c98de
Fixed typo and changed warning to debug
2015-01-13 21:53:07 +00:00
Moritz Lipp
c7d77a1030
Update documentation
2014-12-27 00:03:34 +01:00
Sebastian Ramacher
04d666f61d
Fix various issues if database == NULL
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-12-15 03:37:41 +01:00
Sebastian Ramacher
0e72cbc19a
Fix use-after-free issue
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-12-15 03:28:08 +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
8d71a755d6
Correct usage of boolean values in sc_search
...
This patch resolves memory issues caused by using g_value_set_boolean and an
incorrect type of the target variable.
Thanks to edd@openbsd.org
2014-11-29 19:38:27 +01:00
Sebastian Ramacher
10f3da57c6
More GObject* fun
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-11-25 13:57:02 +01:00
Sebastian Ramacher
9dc02b6425
Make sure that we pass GObject* everywhere
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-11-25 13:51:27 +01:00
Moritz Lipp
a1a0e47148
Begin to update build-system
2014-11-07 15:57:46 +01:00