summaryrefslogtreecommitdiff
path: root/libdocument
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-08-21 23:07:52 +0200
committerraveit65 <[email protected]>2019-08-29 12:00:35 +0200
commit6061cf30d7a351d7214ee074e4530fb8b9d4e94c (patch)
tree017eb17cf1f61084b9162a52834ac06a83dcc088 /libdocument
parent7dc6ac4dde817633a82f35cfb4f19102ea94b272 (diff)
downloadatril-6061cf30d7a351d7214ee074e4530fb8b9d4e94c.tar.bz2
atril-6061cf30d7a351d7214ee074e4530fb8b9d4e94c.tar.xz
Bump synctex to 1.21
$ cd cut-n-paste/synctex $ rm synctex_* $ ./update-synctex-from-TL.sh Test on Fedora: 1. Install required packages $ sudo dnf install texlive-scheme-basic texlive-lipsum -y 2. Build a pdf with synctex enabled $ cat <<EOF >> file.tex \documentclass[12pt]{report} \usepackage{lipsum} \begin{document} \chapter{Introduction} \lipsum[2-4] \end{document} EOF $ pdflatex -synctex=1 file.tex 3. Open file.pdf using atril 4. Search any text string
Diffstat (limited to 'libdocument')
-rw-r--r--libdocument/ev-document.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libdocument/ev-document.c b/libdocument/ev-document.c
index 639335e7..fcebc6e7 100644
--- a/libdocument/ev-document.c
+++ b/libdocument/ev-document.c
@@ -54,7 +54,7 @@ struct _EvDocumentPrivate
EvPageSize *page_sizes;
EvDocumentInfo *info;
- synctex_scanner_t synctex_scanner;
+ synctex_scanner_p synctex_scanner;
};
static gint _ev_document_get_n_pages (EvDocument *document);
@@ -417,7 +417,7 @@ ev_document_synctex_backward_search (EvDocument *document,
gfloat y)
{
EvSourceLink *result = NULL;
- synctex_scanner_t scanner;
+ synctex_scanner_p scanner;
g_return_val_if_fail (EV_IS_DOCUMENT (document), NULL);
@@ -426,10 +426,10 @@ ev_document_synctex_backward_search (EvDocument *document,
return NULL;
if (synctex_edit_query (scanner, page_index + 1, x, y) > 0) {
- synctex_node_t node;
+ synctex_node_p node;
/* We assume that a backward search returns either zero or one result_node */
- node = synctex_next_result (scanner);
+ node = synctex_scanner_next_result (scanner);
if (node != NULL) {
const gchar *filename;
@@ -462,7 +462,7 @@ ev_document_synctex_forward_search (EvDocument *document,
EvSourceLink *link)
{
EvMapping *result = NULL;
- synctex_scanner_t scanner;
+ synctex_scanner_p scanner;
g_return_val_if_fail (EV_IS_DOCUMENT (document), NULL);
@@ -470,11 +470,11 @@ ev_document_synctex_forward_search (EvDocument *document,
if (!scanner)
return NULL;
- if (synctex_display_query (scanner, link->filename, link->line, link->col) > 0) {
- synctex_node_t node;
+ if (synctex_display_query (scanner, link->filename, link->line, link->col, 0) > 0) {
+ synctex_node_p node;
gint page;
- if ((node = synctex_next_result (scanner))) {
+ if ((node = synctex_scanner_next_result (scanner))) {
result = g_new (EvMapping, 1);
page = synctex_node_page (node) - 1;