Bug#896566: gummi: FTBFS against new libsyntex

Samuel Thibault sthibault at debian.org
Sun Apr 29 15:53:06 BST 2018


Control: tags -1 + patch

Hello,

Sebastian Ramacher, le dim. 22 avril 2018 13:17:48 +0200, a ecrit:
> | gui/gui-preview.c:1044:5: error: unknown type name 'synctex_scanner_t'; use 'struct' keyword to refer to the type

Here is a proposed patch.

Samuel
-------------- next part --------------
Index: gummi-0.6.6/src/gui/gui-preview.c
===================================================================
--- gummi-0.6.6.orig/src/gui/gui-preview.c
+++ gummi-0.6.6/src/gui/gui-preview.c
@@ -1041,18 +1041,18 @@ static gboolean synctex_run_parser(GuPre
     gint column = gtk_text_iter_get_line_offset(sync_to);
     slog(L_DEBUG, "Syncing to %s, line %i, column %i\n", tex_file, line, column);
 
-    synctex_scanner_t sync_scanner = synctex_scanner_new_with_output_file(pc->uri, C_TMPDIR, 1);
+    synctex_scanner_p sync_scanner = synctex_scanner_new_with_output_file(pc->uri, C_TMPDIR, 1);
 
     synctex_clear_sync_nodes(pc);
 
-    if(synctex_display_query(sync_scanner, tex_file, line, column)>0) {
-        synctex_node_t node;
+    if(synctex_display_query(sync_scanner, tex_file, line, column, -1)>0) {
+        synctex_node_p node;
         /*
          * SyncTeX can return several nodes. It seems best to use the last one, as
          * this one rarely is below (usually slighly above) the edited line.
          */
 
-        while ((node = synctex_next_result(sync_scanner))) {
+        while ((node = synctex_scanner_next_result(sync_scanner))) {
 
             SyncNode *sn = g_new0(SyncNode, 1);
 
@@ -2038,16 +2038,16 @@ gboolean on_button_pressed(GtkWidget* w,
 
         slog(L_DEBUG, "Ctrl-click to %i, %i\n", x, y);
 
-        synctex_scanner_t sync_scanner = synctex_scanner_new_with_output_file(pc->uri, C_TMPDIR, 1);
+        synctex_scanner_p sync_scanner = synctex_scanner_new_with_output_file(pc->uri, C_TMPDIR, 1);
 
         if(synctex_edit_query(sync_scanner, page+1, x/pc->scale, y/pc->scale)>0) {
-            synctex_node_t node;
+            synctex_node_p node;
             /*
              * SyncTeX can return several nodes. It seems best to use the last one, as
              * this one rarely is below (usually slighly above) the edited line.
              */
 
-            if ((node = synctex_next_result(sync_scanner))) {
+            if ((node = synctex_scanner_next_result(sync_scanner))) {
 
                 const gchar *file = synctex_scanner_get_name(sync_scanner, synctex_node_tag(node));
                 gint line = synctex_node_line(node);


More information about the debian-science-maintainers mailing list