summaryrefslogtreecommitdiff
path: root/libdocument/ev-document-annotations.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdocument/ev-document-annotations.c')
-rw-r--r--libdocument/ev-document-annotations.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/libdocument/ev-document-annotations.c b/libdocument/ev-document-annotations.c
index 05084906..a732f3fc 100644
--- a/libdocument/ev-document-annotations.c
+++ b/libdocument/ev-document-annotations.c
@@ -73,3 +73,21 @@ ev_document_annotations_can_add_annotation (EvDocumentAnnotations *document_anno
return iface->add_annotation != NULL;
}
+
+void
+ev_document_annotations_remove_annotation (EvDocumentAnnotations *document_annots,
+ EvAnnotation *annot)
+{
+ EvDocumentAnnotationsInterface *iface = EV_DOCUMENT_ANNOTATIONS_GET_IFACE (document_annots);
+
+ if (iface->remove_annotation)
+ iface->remove_annotation (document_annots, annot);
+}
+
+gboolean
+ev_document_annotations_can_remove_annotation (EvDocumentAnnotations *document_annots)
+{
+ EvDocumentAnnotationsInterface *iface = EV_DOCUMENT_ANNOTATIONS_GET_IFACE (document_annots);
+
+ return iface->remove_annotation != NULL;
+}