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

package info (click to toggle)
denemo 2.6.39-0.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 66,228 kB
  • sloc: ansic: 94,371; lisp: 38,489; xml: 22,630; python: 1,930; sh: 1,239; makefile: 642; yacc: 288; sed: 93
file content (30 lines) | stat: -rw-r--r-- 1,492 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
From: Bastian Germann <bage@debian.org>
Date: Fri, 14 Feb 2025 20:12:23 +0100
Subject: Prevent incompatible pointer types

---
 src/source/proof.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/source/proof.c b/src/source/proof.c
index f9a02bf0e..dc89645c0 100644
--- a/src/source/proof.c
+++ b/src/source/proof.c
@@ -280,7 +280,7 @@ press (EvView * view,  GdkEventButton  *event, EvDocumentModel *model)
         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;
@@ -313,7 +313,7 @@ find_annotated_pages (EvDocumentModel *model)
     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));