Lines 1-36
Link Here
|
1 |
--- zathura/main.c.orig 2015-12-21 10:19:18 UTC |
|
|
2 |
+++ zathura/main.c |
3 |
@@ -85,10 +85,13 @@ run_synctex_forward(const char* synctex_ |
4 |
static zathura_t* |
5 |
init_zathura(const char* config_dir, const char* data_dir, |
6 |
const char* cache_dir, const char* plugin_path, char** argv, |
7 |
+#ifdef WITH_SYNCTEX |
8 |
+ char* synctex_editor, |
9 |
+#endif |
10 |
#ifdef GDK_WINDOWING_X11 |
11 |
- char* synctex_editor, Window embed) |
12 |
+ Window embed) |
13 |
#else |
14 |
- char* synctex_editor) |
15 |
+ ) |
16 |
#endif |
17 |
{ |
18 |
/* create zathura session */ |
19 |
@@ -249,11 +252,14 @@ main(int argc, char* argv[]) |
20 |
gtk_init(&argc, &argv); |
21 |
|
22 |
/* Create zathura session */ |
23 |
- zathura_t* zathura = init_zathura(config_dir, data_dir, cache_dir, |
24 |
+ zathura_t* zathura = init_zathura(config_dir, data_dir, cache_dir, plugin_path, argv, |
25 |
+#ifdef WITH_SYNCTEX |
26 |
+ synctex_editor, |
27 |
+#endif |
28 |
#ifdef GDK_WINDOWING_X11 |
29 |
- plugin_path, argv, synctex_editor, embed); |
30 |
+ embed); |
31 |
#else |
32 |
- plugin_path, argv, synctex_editor); |
33 |
+ ); |
34 |
#endif |
35 |
if (zathura == NULL) { |
36 |
girara_error("Could not initialize zathura."); |