X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=backend%2Fev-document.c;h=10f1d00e2800b64596e13121b15f1f286491a5fe;hb=ab8da3ce3810df8dc6a9df049031292ee03b4393;hp=a800866f8b087d14f456c2aa2885462b86bc63d7;hpb=41229e9ef5135c93176acb6320f96abc7d624b0a;p=evince.git diff --git a/backend/ev-document.c b/backend/ev-document.c index a800866f..10f1d00e 100644 --- a/backend/ev-document.c +++ b/backend/ev-document.c @@ -200,7 +200,30 @@ ev_document_get_links (EvDocument *document, return retval; } +gboolean +ev_document_has_attachments (EvDocument *document) +{ + EvDocumentIface *iface = EV_DOCUMENT_GET_IFACE (document); + + if (iface->has_attachments == NULL) + return FALSE; + + return iface->has_attachments (document); +} + +GList * +ev_document_get_attachments (EvDocument *document) +{ + EvDocumentIface *iface = EV_DOCUMENT_GET_IFACE (document); + GList *retval; + LOG ("ev_document_get_attachments"); + if (iface->get_attachments == NULL) + return NULL; + retval = iface->get_attachments (document); + + return retval; +} GdkPixbuf * ev_document_render_pixbuf (EvDocument *document,