X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=backend%2Fev-document-links.c;h=daec3eaa528303eca396fcf826d1ef44b6adc689;hb=81f8b8c70408c541a7b9a98a8cbd905365d510c0;hp=7ab3468f3ad5334afa3053a79666a106353fcf24;hpb=bca369672136e5ff831ece9832afd42085808fba;p=evince.git diff --git a/backend/ev-document-links.c b/backend/ev-document-links.c index 7ab3468f..daec3eaa 100644 --- a/backend/ev-document-links.c +++ b/backend/ev-document-links.c @@ -30,10 +30,8 @@ ev_document_links_get_type (void) { static GType type = 0; - if (G_UNLIKELY (type == 0)) - { - static const GTypeInfo our_info = - { + if (G_UNLIKELY (type == 0)) { + static const GTypeInfo our_info = { sizeof (EvDocumentLinksIface), NULL, NULL, @@ -68,3 +66,27 @@ ev_document_links_get_links_model (EvDocumentLinks *document_links) return retval; } + +GList * +ev_document_links_get_links (EvDocumentLinks *document_links, + gint page) +{ + EvDocumentLinksIface *iface = EV_DOCUMENT_LINKS_GET_IFACE (document_links); + GList *retval; + + retval = iface->get_links (document_links, page); + + return retval; +} + +EvLinkDest * +ev_document_links_find_link_dest (EvDocumentLinks *document_links, + const gchar *link_name) +{ + EvDocumentLinksIface *iface = EV_DOCUMENT_LINKS_GET_IFACE (document_links); + EvLinkDest *retval; + + retval = iface->find_link_dest (document_links, link_name); + + return retval; +}