Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/ev-document.c12
-rw-r--r--backend/ev-document.h10
2 files changed, 21 insertions, 1 deletions
diff --git a/backend/ev-document.c b/backend/ev-document.c
index 4aea1d1..2f50dcc 100644
--- a/backend/ev-document.c
+++ b/backend/ev-document.c
@@ -159,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);
+}
+
diff --git a/backend/ev-document.h b/backend/ev-document.h
index 8d58f0c..4cf4601 100644
--- a/backend/ev-document.h
+++ b/backend/ev-document.h
@@ -80,7 +80,9 @@ struct _EvDocumentIface
/* Signals */
/* "found" emitted at least 1 time (possibly with n_results == 0)
- * for any call to begin_find.
+ * for any call to begin_find; also emitted with NULL,0 when
+ * you end_find. Calling begin_find twice without calling end_find
+ * is considered OK.
*/
void (* found) (EvDocument *document,
const EvFindResult *results,
@@ -117,6 +119,12 @@ void ev_document_begin_find (EvDocument *document,
gboolean case_sensitive);
void ev_document_end_find (EvDocument *document);
+void ev_document_found (EvDocument *document,
+ const EvFindResult *results,
+ int n_results,
+ double percent_complete);
+
+
G_END_DECLS
#endif