From 60b002aab6c2ee610377d46208ee16dda1e94fc3 Mon Sep 17 00:00:00 2001 From: rootavish Date: Tue, 29 Jul 2014 19:57:02 +0530 Subject: Searching single pages in epub ..and other fixing other bugs that were present once the webview was added, like the escape key command etc. Will look to refactor the thumbnails into ev-web-view.c. In the next commit I'll extend this search over the entire document.Also will incorporate document index(table of contents). --- libdocument/ev-document-find.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libdocument/ev-document-find.c') diff --git a/libdocument/ev-document-find.c b/libdocument/ev-document-find.c index 0b5fac01..c22b913d 100644 --- a/libdocument/ev-document-find.c +++ b/libdocument/ev-document-find.c @@ -40,3 +40,12 @@ ev_document_find_find_text (EvDocumentFind *document_find, return iface->find_text (document_find, page, text, case_sensitive); } +gboolean +ev_document_find_check_for_hits(EvDocumentFind *document_find, + EvPage *page, + const gchar *text, + gboolean case_sensitive) +{ + EvDocumentFindInterface *iface = EV_DOCUMENT_FIND_GET_IFACE (document_find); + return iface->check_for_hits (document_find, page, text, case_sensitive); +} \ No newline at end of file -- cgit v1.2.1 From 56880392a6678ccec12bbec016939597acd49b07 Mon Sep 17 00:00:00 2001 From: rootavish Date: Wed, 6 Aug 2014 15:34:02 +0530 Subject: Searching in epub documents I added the capability to search through documents. The search is quite buggy, and we'll be taking care of each bug one at a time. --- libdocument/ev-document-find.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdocument/ev-document-find.c') diff --git a/libdocument/ev-document-find.c b/libdocument/ev-document-find.c index c22b913d..92dfffe5 100644 --- a/libdocument/ev-document-find.c +++ b/libdocument/ev-document-find.c @@ -40,7 +40,7 @@ ev_document_find_find_text (EvDocumentFind *document_find, return iface->find_text (document_find, page, text, case_sensitive); } -gboolean +guint ev_document_find_check_for_hits(EvDocumentFind *document_find, EvPage *page, const gchar *text, -- cgit v1.2.1