From 110ec8e1d24701cae441a5fe511611aaa478fd3b Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Wed, 22 Dec 2004 05:30:35 +0000 Subject: connect to "found" signal (expose_bin_window): draw find highlights 2004-12-22 Havoc Pennington * shell/ev-view.c (ev_view_set_document): connect to "found" signal (expose_bin_window): draw find highlights * shell/ev-window.c (find_bar_search_changed_cb): implement * pdf/xpdf/pdf-document.cc (pdf_document_begin_find) (pdf_document_end_find): implement this interface * backend/ev-document.c (ev_document_found): add this to emit signal --- (limited to 'backend/ev-document.h') 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 -- cgit v0.9.1