X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=backend%2Fev-document.c;h=2f50dcc832d05bdbdc14254f00d47f8c12b2ea93;hb=d56721e376e72279f86d8dff2c791fc3d3affe92;hp=02c24427f288c2523cd49a0e1eeed8ae8d98ae14;hpb=9317aeb2e299d6fdf18dbf22b6a4707e4d149dd5;p=evince.git diff --git a/backend/ev-document.c b/backend/ev-document.c index 02c24427..2f50dcc8 100644 --- a/backend/ev-document.c +++ b/backend/ev-document.c @@ -92,6 +92,13 @@ ev_document_set_page (EvDocument *document, iface->set_page (document, page); } +int +ev_document_get_page (EvDocument *document) +{ + EvDocumentIface *iface = EV_DOCUMENT_GET_IFACE (document); + return iface->get_page (document); +} + void ev_document_set_target (EvDocument *document, GdkDrawable *target) @@ -152,3 +159,15 @@ ev_document_end_find (EvDocument *document) EvDocumentIface *iface = EV_DOCUMENT_GET_IFACE (document); iface->end_find (document); } + +void +ev_document_found (EvDocument *document, + const EvFindResult *results, + int n_results, + double percent_complete) +{ + g_signal_emit_by_name (document, + "found", + results, n_results, percent_complete); +} +