Commit e9cfc67f authored by jiajunhuang's avatar jiajunhuang

fix synctex error(but another bug occured).

parent 6218ee88
......@@ -85,10 +85,13 @@ run_synctex_forward(const char* synctex_fwd, const char* filename,
static zathura_t*
init_zathura(const char* config_dir, const char* data_dir,
const char* cache_dir, const char* plugin_path, char** argv,
#ifdef WITH_SYNCTEX
char* synctex_editor,
#endif
#ifdef GDK_WINDOWING_X11
char* synctex_editor, Window embed)
Window embed)
#else
char* synctex_editor)
)
#endif
{
/* create zathura session */
......@@ -249,11 +252,14 @@ main(int argc, char* argv[])
gtk_init(&argc, &argv);
/* Create zathura session */
zathura_t* zathura = init_zathura(config_dir, data_dir, cache_dir,
zathura_t* zathura = init_zathura(config_dir, data_dir, cache_dir, plugin_path, argv,
#ifdef WITH_SYNCTEX
synctex_editor,
#endif
#ifdef GDK_WINDOWING_X11
plugin_path, argv, synctex_editor, embed);
embed);
#else
plugin_path, argv, synctex_editor);
);
#endif
if (zathura == NULL) {
girara_error("Could not initialize zathura.");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment