summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdocument/ev-document.c1
-rw-r--r--libdocument/ev-document.h3
-rw-r--r--shell/ev-window.c4
3 files changed, 5 insertions, 3 deletions
diff --git a/libdocument/ev-document.c b/libdocument/ev-document.c
index fcebc6e7..b713a671 100644
--- a/libdocument/ev-document.c
+++ b/libdocument/ev-document.c
@@ -137,6 +137,7 @@ static void
ev_document_init (EvDocument *document)
{
document->priv = ev_document_get_instance_private (document);
+ document->synctex_version = SYNCTEX_VERSION_STRING;
/* Assume all pages are the same size until proven otherwise */
document->priv->uniform = TRUE;
diff --git a/libdocument/ev-document.h b/libdocument/ev-document.h
index 43af4b58..7fb1bf2f 100644
--- a/libdocument/ev-document.h
+++ b/libdocument/ev-document.h
@@ -84,7 +84,8 @@ struct _EvDocument
* Since we can only access the members of this structure from the window frontend,
* we need a flag to detemine whether to replace the atril-view with a web-view.
*/
- gboolean iswebdocument;
+ gboolean iswebdocument;
+ const gchar *synctex_version;
};
struct _EvDocumentClass
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 0188b588..8e857b7b 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -5368,8 +5368,8 @@ build_comments_string (EvDocument *document)
if (document && ev_document_get_backend_info (document, &info)) {
comments = g_strdup_printf (
- _("Document Viewer\nUsing %s (%s)"),
- info.name, info.version);
+ _("Document Viewer\nUsing %s (%s)\nand SyncTeX %s"),
+ info.name, info.version, document->synctex_version);
} else {
comments = g_strdup_printf (
_("Document Viewer"));