diff options
author | Oz Tiram <[email protected]> | 2020-02-07 21:57:10 +0100 |
---|---|---|
committer | Robert Antoni Buj Gelonch <[email protected]> | 2020-06-18 10:48:28 +0200 |
commit | d1f4707aad8a1ecad412295d2ccd3f7aa87b95b0 (patch) | |
tree | 7c842894f3ae039e69f48d6f7c9ad02282908330 /shell | |
parent | eb8a049f0c2d19551397c9701b7c00921c4917c2 (diff) | |
download | atril-d1f4707aad8a1ecad412295d2ccd3f7aa87b95b0.tar.bz2 atril-d1f4707aad8a1ecad412295d2ccd3f7aa87b95b0.tar.xz |
Make synctex optional
Not everyone who reads PDF's is necessarily a LaTeX user.
These changes allow users to install atril without the huge bagage
of tex-live on systems where synctex isn't provided as a stand alone
library.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-window.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c index e2dfbf72..bffc9a7f 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -7736,6 +7736,8 @@ ev_window_emit_doc_loaded (EvWindow *window) ev_atril_window_emit_document_loaded (window->priv->skeleton, window->priv->uri); } + +#ifdef ENABLE_SYNCTEX static gboolean handle_sync_view_cb (EvAtrilWindow *object, GDBusMethodInvocation *invocation, @@ -7756,6 +7758,7 @@ handle_sync_view_cb (EvAtrilWindow *object, return TRUE; } +#endif #endif /* ENABLE_DBUS */ static gboolean @@ -7816,9 +7819,11 @@ ev_window_init (EvWindow *ev_window) ev_window->priv->dbus_object_path, &error)) { ev_window->priv->skeleton = skeleton; +#ifdef ENABLE_SYNCTEX g_signal_connect (skeleton, "handle-sync-view", G_CALLBACK (handle_sync_view_cb), ev_window); +#endif } else { g_printerr ("Failed to register bus object %s: %s\n", ev_window->priv->dbus_object_path, error->message); |