From: Carlos Garcia Campos Date: Mon, 2 Aug 2010 18:40:28 +0000 (+0200) Subject: [libdocument] Add document_is_modified() to EvDocumentAnnotations interface X-Git-Tag: EVINCE_2_31_6~4 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=1758b2af4bd0353c40f72b38cfb87048eae461b4;p=evince.git [libdocument] Add document_is_modified() to EvDocumentAnnotations interface --- diff --git a/libdocument/ev-document-annotations.c b/libdocument/ev-document-annotations.c index 4bc039eb..620d117e 100644 --- a/libdocument/ev-document-annotations.c +++ b/libdocument/ev-document-annotations.c @@ -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, diff --git a/libdocument/ev-document-annotations.h b/libdocument/ev-document-annotations.h index 8eb2c7c2..9c191ca1 100644 --- a/libdocument/ev-document-annotations.h +++ b/libdocument/ev-document-annotations.h @@ -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