X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=libdocument%2Fev-document.c;h=70349dcb7f67c43d2aa71467a1ad3359999b54e9;hb=d242e00f56fb5d0dbad00f9abe13903198104838;hp=1747bf1b216255677bcbab98dc20401cb8555bf0;hpb=a3a90743203a26d3fc71f0d9ba58aeb645279d04;p=evince.git diff --git a/libdocument/ev-document.c b/libdocument/ev-document.c index 1747bf1b..70349dcb 100644 --- a/libdocument/ev-document.c +++ b/libdocument/ev-document.c @@ -433,9 +433,7 @@ ev_document_synctex_backward_search (EvDocument *document, /** * ev_document_synctex_forward_search: * @document: - * @filename: the source filename - * @line: line number in the source file - * @col: column number in the source file + * @source_link: * * Peforms a Synctex forward search to obtain the area in the document * corresponding to the position @line and @column number in the source Tex file @@ -444,10 +442,8 @@ ev_document_synctex_backward_search (EvDocument *document, * the given line in the source file. It must be free with g_free when done */ EvMapping * -ev_document_synctex_forward_search (EvDocument *document, - const gchar *filename, - gint line, - gint col) +ev_document_synctex_forward_search (EvDocument *document, + EvSourceLink *link) { EvMapping *result = NULL; synctex_scanner_t scanner; @@ -458,7 +454,7 @@ ev_document_synctex_forward_search (EvDocument *document, if (!scanner) return NULL; - if (synctex_display_query (scanner, filename, line, col) > 0) { + if (synctex_display_query (scanner, link->filename, link->line, link->col) > 0) { synctex_node_t node; gint page;