summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-11-09 17:06:42 +0100
committerraveit65 <[email protected]>2019-11-11 10:53:05 +0100
commit6f1f443152f91a885cd3479b3f833d6026791380 (patch)
treef1bd32c193a1617198310db109a7d7d64736fc77
parent97d639522285ef40a2c2f6f7372a4b4b535d8135 (diff)
downloadatril-6f1f443152f91a885cd3479b3f833d6026791380.tar.bz2
atril-6f1f443152f91a885cd3479b3f833d6026791380.tar.xz
show SyncTeX version in about dialog
-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"));