File: 0002-Prevent-incompatible-pointer-types.patch

package info (click to toggle)
denemo 2.6.49-0.2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 66,916 kB
  • sloc: ansic: 94,587; lisp: 38,713; xml: 22,675; python: 1,930; sh: 1,239; makefile: 642; yacc: 288; sed: 93
file content (39 lines) | stat: -rw-r--r-- 1,727 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From: Bastian Germann <bage@debian.org>
      Andreas Tille <tille@debian.org>
Date: 2025-09-11
Subject: Prevent incompatible pointer types
         + include header instead of (wrong) declaration of function
---
 src/source/proof.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/src/source/proof.c
+++ b/src/source/proof.c
@@ -29,6 +29,7 @@
 #include <evince-document.h>
 #endif
 
+#include <libdocument/ev-document-annotations.h>
 static const gchar *nearest_annotation_text = NULL;
 static GList *annotated_pages = NULL;
 static GList *current_page;
@@ -279,8 +280,7 @@ press (EvView * view,  GdkEventButton  *
     if (event->button != 1)
         infodialog (help_text);
     nearest_annotation_text = NULL;
-    extern EvMappingList * ev_document_annotations_get_annotations();
-    EvMappingList *mapping_list = ev_document_annotations_get_annotations (doc, ev_document_get_page(doc, i));
+    EvMappingList *mapping_list = ev_document_annotations_get_annotations (EV_DOCUMENT_ANNOTATIONS(doc), ev_document_get_page(doc, i));
     if(mapping_list)
     {
     gdouble nearest = G_MAXDOUBLE;
@@ -312,8 +312,7 @@ find_annotated_pages (EvDocumentModel *m
     gint i;
     for (i=0; i< ev_document_get_n_pages(doc);i++)
         {
-            extern EvMappingList * ev_document_annotations_get_annotations();
-            EvMappingList *mapping_list = ev_document_annotations_get_annotations (doc, ev_document_get_page(doc, i));
+            EvMappingList *mapping_list = ev_document_annotations_get_annotations (EV_DOCUMENT_ANNOTATIONS(doc), ev_document_get_page(doc, i));
             if(mapping_list)
             {
              annotated_pages = g_list_append (annotated_pages, GINT_TO_POINTER(i));