]> www.fi.muni.cz Git - evince.git/commitdiff
[libdocument] Use EvSourceLink as parameter of synctex_forward_search()
authorCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 28 Jun 2010 09:24:09 +0000 (11:24 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 28 Jun 2010 09:24:09 +0000 (11:24 +0200)
libdocument/ev-document.c
libdocument/ev-document.h

index 1747bf1b216255677bcbab98dc20401cb8555bf0..70349dcb7f67c43d2aa71467a1ad3359999b54e9 100644 (file)
@@ -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;
 
index 578cc7ff46113b6a021d419628738081a7de341b..63d2a8ec7e71c561240de009f7c9db6bdd67aa4f 100644 (file)
@@ -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);