summaryrefslogtreecommitdiff
path: root/libview/ev-web-view.h
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2026-06-05 13:10:13 -0400
committerVictor Kareh <[email protected]>2026-06-09 12:38:12 -0400
commitb1a648b9583b1368b80b988df3aa0bc0db7dc004 (patch)
tree5d46a6740d2a608462fbf52352dd66e357b6bf99 /libview/ev-web-view.h
parent3e7daa36411678717b833eac7866a7efd03f0bdd (diff)
downloadatril-libgepub-support.tar.bz2
atril-libgepub-support.tar.xz
epub: Implement search using WebKit find controllerlibgepub-support
Bypass the threaded EvJobFind for EPUB documents and use WebKit's WebKitFindController directly. The threaded find job was incompatible with GepubDoc's single-threaded design and caused segfaults. The new approach searches within the current page using WebKit's built-in text search and highlighting, which is both simpler and thread-safe. Assisted-by: OpenCode:claude-opus-4-6
Diffstat (limited to 'libview/ev-web-view.h')
-rw-r--r--libview/ev-web-view.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/libview/ev-web-view.h b/libview/ev-web-view.h
index 02f7ef64..721560db 100644
--- a/libview/ev-web-view.h
+++ b/libview/ev-web-view.h
@@ -62,18 +62,13 @@ gboolean ev_web_view_previous_page (EvWebView *webview);
void ev_web_view_handle_link (EvWebView *webview, EvLink* link);
/* Searching */
+void ev_web_view_find_changed (EvWebView *webview,
+ const gchar *text,
+ gboolean case_sensitive);
void ev_web_view_find_next (EvWebView *webview);
void ev_web_view_find_previous (EvWebView *webview);
-
-void ev_web_view_find_changed (EvWebView *webview,
- guint *results,
- gchar *text,
- gboolean case_sensitive);
-
void ev_web_view_find_search_changed (EvWebView *webview);
void ev_web_view_find_cancel (EvWebView *webview);
-void ev_web_view_find_set_highlight_search (EvWebView *webview,gboolean visible);
-void ev_web_view_set_handler (EvWebView *webview,gboolean visible);
/* Selection */
gboolean ev_web_view_get_has_selection (EvWebView *webview);
void ev_web_view_select_all (EvWebView *webview);