summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-23 11:17:44 +0200
committerraveit65 <[email protected]>2016-06-24 20:48:20 +0200
commit34d6b91ff4cc64f151782beff6cd13b665d0d704 (patch)
treed1d3558fe2823d9c8cbc0a5e2076d328d221c036
parent4ab1caf161e444fa5a7f365052561455c2845090 (diff)
downloadatril-34d6b91ff4cc64f151782beff6cd13b665d0d704.tar.bz2
atril-34d6b91ff4cc64f151782beff6cd13b665d0d704.tar.xz
document-model: annotate ev_document_model_get_document()
So that introspected bindings can call into this method. https://bugzilla.gnome.org/show_bug.cgi?id=662720 taken from: https://git.gnome.org/browse/evince/commit/?id=a6b50f1
-rw-r--r--libview/ev-document-model.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libview/ev-document-model.c b/libview/ev-document-model.c
index 403df466..22956288 100644
--- a/libview/ev-document-model.c
+++ b/libview/ev-document-model.c
@@ -306,6 +306,14 @@ ev_document_model_set_document (EvDocumentModel *model,
g_object_notify (G_OBJECT (model), "document");
}
+/**
+ * ev_document_model_get_document:
+ * @model: a #EvDocumentModel
+ *
+ * Returns the #EvDocument referenced by the model.
+ *
+ * Returns: (transfer none): a #EvDocument
+ */
EvDocument *
ev_document_model_get_document (EvDocumentModel *model)
{