]> www.fi.muni.cz Git - evince.git/commitdiff
[libdocument] Add document_is_modified() to EvDocumentAnnotations interface
authorCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 2 Aug 2010 18:40:28 +0000 (20:40 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 2 Aug 2010 18:57:56 +0000 (20:57 +0200)
libdocument/ev-document-annotations.c
libdocument/ev-document-annotations.h

index 4bc039ebbdd26cc353a8b8ef29fc04da46e21fc6..620d117e2102231ed4c98b9fd70aa9b7ac4c0cdf 100644 (file)
@@ -37,6 +37,14 @@ ev_document_annotations_get_annotations (EvDocumentAnnotations *document_annots,
        return iface->get_annotations (document_annots, page);
 }
 
+gboolean
+ev_document_annotations_document_is_modified (EvDocumentAnnotations *document_annots)
+{
+       EvDocumentAnnotationsInterface *iface = EV_DOCUMENT_ANNOTATIONS_GET_IFACE (document_annots);
+
+       return (iface->document_is_modified) ? iface->document_is_modified (document_annots) : FALSE;
+}
+
 void
 ev_document_annotations_save_annotation (EvDocumentAnnotations *document_annots,
                                         EvAnnotation          *annot,
index 8eb2c7c276f284fd375e9a26a5751f5aa6ced9ce..9c191ca17065c86b1cf4f03cc93cedaa5310772f 100644 (file)
@@ -70,26 +70,28 @@ struct _EvDocumentAnnotationsInterface
        GTypeInterface base_iface;
 
        /* Methods  */
-       EvMappingList *(* get_annotations) (EvDocumentAnnotations *document_annots,
-                                           EvPage                *page);
-       void           (* add_annotation)  (EvDocumentAnnotations *document_annots,
-                                           EvAnnotation          *annot,
-                                           EvRectangle           *rect);
-       void           (* save_annotation) (EvDocumentAnnotations *document_annots,
-                                           EvAnnotation          *annot,
-                                           EvAnnotationsSaveMask  mask);
+       EvMappingList *(* get_annotations)      (EvDocumentAnnotations *document_annots,
+                                                EvPage                *page);
+       gboolean       (* document_is_modified) (EvDocumentAnnotations *document_annots);
+       void           (* add_annotation)       (EvDocumentAnnotations *document_annots,
+                                                EvAnnotation          *annot,
+                                                EvRectangle           *rect);
+       void           (* save_annotation)      (EvDocumentAnnotations *document_annots,
+                                                EvAnnotation          *annot,
+                                                EvAnnotationsSaveMask  mask);
 };
 
-GType          ev_document_annotations_get_type           (void) G_GNUC_CONST;
-EvMappingList *ev_document_annotations_get_annotations    (EvDocumentAnnotations *document_annots,
-                                                          EvPage                *page);
-void           ev_document_annotations_add_annotation     (EvDocumentAnnotations *document_annots,
-                                                          EvAnnotation          *annot,
-                                                          EvRectangle           *rect);
-void           ev_document_annotations_save_annotation    (EvDocumentAnnotations *document_annots,
-                                                          EvAnnotation          *annot,
-                                                          EvAnnotationsSaveMask  mask);
-gboolean       ev_document_annotations_can_add_annotation (EvDocumentAnnotations *document_annots);
+GType          ev_document_annotations_get_type             (void) G_GNUC_CONST;
+EvMappingList *ev_document_annotations_get_annotations      (EvDocumentAnnotations *document_annots,
+                                                            EvPage                *page);
+gboolean       ev_document_annotations_document_is_modified (EvDocumentAnnotations *document_annots);
+void           ev_document_annotations_add_annotation       (EvDocumentAnnotations *document_annots,
+                                                            EvAnnotation          *annot,
+                                                            EvRectangle           *rect);
+void           ev_document_annotations_save_annotation      (EvDocumentAnnotations *document_annots,
+                                                            EvAnnotation          *annot,
+                                                            EvAnnotationsSaveMask  mask);
+gboolean       ev_document_annotations_can_add_annotation   (EvDocumentAnnotations *document_annots);
 
 G_END_DECLS