Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/libdocument
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2010-06-28 09:24:09 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2010-06-28 09:24:09 (GMT)
commit2de1a33a123dea2aa16154e5beec5b3a57c939fc (patch)
tree44623b6c39d324deb4d2e0f443b91191490ca7cd /libdocument
parentcc4da1e236db7a64282baf5213c41f5e21abca35 (diff)
[libdocument] Use EvSourceLink as parameter of synctex_forward_search()
Diffstat (limited to 'libdocument')
-rw-r--r--libdocument/ev-document.c12
-rw-r--r--libdocument/ev-document.h4
2 files changed, 5 insertions, 11 deletions
diff --git a/libdocument/ev-document.c b/libdocument/ev-document.c
index 1747bf1..70349dc 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;
diff --git a/libdocument/ev-document.h b/libdocument/ev-document.h
index 578cc7f..63d2a8e 100644
--- a/libdocument/ev-document.h
+++ b/libdocument/ev-document.h
@@ -175,9 +175,7 @@ EvSourceLink *ev_document_synctex_backward_search
EvMapping *ev_document_synctex_forward_search
(EvDocument *document,
- const gchar *filename,
- gint line,
- gint col);
+ EvSourceLink *source_link);
gint ev_rect_cmp (EvRectangle *a,
EvRectangle *b);