Commit Graph

1984 Commits

Author SHA1 Message Date
Sebastian Ramacher
e10cf0eaf3 Add viewer to Keywords 2015-11-24 01:22:47 +01:00
Sebastian Ramacher
5f11103a48 Use %F as opening multiple files is supported
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-24 01:22:41 +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
a3d676b96b Document GTK+ requirements
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-23 22:22:10 +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
bab767fb2c Update documentation on first-page-column 2015-11-12 16:42:15 +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
40e5019276 Fix makefile dependencies
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-22 19:30:35 +02: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
1b3ff76dfd Update translations
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-15 23:10:09 +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
359fc9a6f2 Update comment
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-08 21:36:48 +02:00
Sebastian Ramacher
321e27eaaa Update README
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-08 21:28:41 +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
Sebastian Ramacher
5ca5264dd9 Fix grammar
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-06 23:00:20 +02:00