summaryrefslogtreecommitdiff
path: root/libdocument
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-09-03 00:00:52 +0200
committerStefano Karapetsas <[email protected]>2012-09-03 00:00:52 +0200
commit5ad91699940909223c167ef40de03e9a55a5a9c3 (patch)
treeddff7db24eab78d18c31cf622d202946c3251c3e /libdocument
parent25807110e3f2ba838e2105664922e39a68fc6e30 (diff)
downloadatril-5ad91699940909223c167ef40de03e9a55a5a9c3.tar.bz2
atril-5ad91699940909223c167ef40de03e9a55a5a9c3.tar.xz
add xps backend
xps backend is from evince ported to MATE by Leandro Vital
Diffstat (limited to 'libdocument')
-rw-r--r--libdocument/ev-document-links.c14
-rw-r--r--libdocument/ev-document-links.h4
2 files changed, 18 insertions, 0 deletions
diff --git a/libdocument/ev-document-links.c b/libdocument/ev-document-links.c
index 3fa0b18b..1c8eb03e 100644
--- a/libdocument/ev-document-links.c
+++ b/libdocument/ev-document-links.c
@@ -77,6 +77,20 @@ ev_document_links_find_link_dest (EvDocumentLinks *document_links,
return retval;
}
+gint
+ev_document_links_find_link_page (EvDocumentLinks *document_links,
+ const gchar *link_name)
+{
+ EvDocumentLinksInterface *iface = EV_DOCUMENT_LINKS_GET_IFACE (document_links);
+ gint retval;
+
+ ev_document_doc_mutex_lock ();
+ retval = iface->find_link_page (document_links, link_name);
+ ev_document_doc_mutex_unlock ();
+
+ return retval;
+}
+
/* Helper functions */
gint
ev_document_links_get_dest_page (EvDocumentLinks *document_links,
diff --git a/libdocument/ev-document-links.h b/libdocument/ev-document-links.h
index 286131d4..75cba6a1 100644
--- a/libdocument/ev-document-links.h
+++ b/libdocument/ev-document-links.h
@@ -67,6 +67,8 @@ struct _EvDocumentLinksInterface
EvPage *page);
EvLinkDest *(* find_link_dest) (EvDocumentLinks *document_links,
const gchar *link_name);
+ gint (* find_link_page) (EvDocumentLinks *document_links,
+ const gchar *link_name);
};
GType ev_document_links_get_type (void) G_GNUC_CONST;
@@ -77,6 +79,8 @@ EvMappingList *ev_document_links_get_links (EvDocumentLinks *document_
EvPage *page);
EvLinkDest *ev_document_links_find_link_dest (EvDocumentLinks *document_links,
const gchar *link_name);
+gint ev_document_links_find_link_page (EvDocumentLinks *document_links,
+ const gchar *link_name);
gint ev_document_links_get_dest_page (EvDocumentLinks *document_links,
EvLinkDest *dest);
gchar *ev_document_links_get_dest_page_label (EvDocumentLinks *document_links,