diff options
author | rootavish <[email protected]> | 2014-08-07 17:43:55 +0530 |
---|---|---|
committer | rootavish <[email protected]> | 2014-08-07 17:43:55 +0530 |
commit | ff0a79e545356046c7145bff0630a7cd50ad977c (patch) | |
tree | 69bcf2b5c333151297378f7da28a573b0d655f5f /shell/ev-window.c | |
parent | 65dd892279c70b31509a5e478ae6f9aa44d9cd21 (diff) | |
download | atril-ff0a79e545356046c7145bff0630a7cd50ad977c.tar.bz2 atril-ff0a79e545356046c7145bff0630a7cd50ad977c.tar.xz |
Ability to search through epub documents
You can now search through the entire epub document. In the next commit I'm adding support for webkit2 with gtk3.
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r-- | shell/ev-window.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c index d765a2d8..aab14229 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -5073,7 +5073,8 @@ ev_window_find_job_updated_cb (EvJobFind *job, { ev_window_update_actions (ev_window); if (ev_window->priv->document->iswebdocument == TRUE ) { - ev_web_view_find_changed(EV_WEB_VIEW(ev_window->priv->webview), job->results,job->text, job->case_sensitive); + ev_web_view_find_changed(EV_WEB_VIEW(ev_window->priv->webview), + job->results,job->text, job->case_sensitive); } else { ev_view_find_changed (EV_VIEW (ev_window->priv->view), @@ -5154,7 +5155,7 @@ find_bar_search_changed_cb (EggFindBar *find_bar, search_string = egg_find_bar_get_search_string (find_bar); if (ev_window->priv->document->iswebdocument) { - ev_web_view_find_search_changed(EV_WEB_VIEW(ev_window->priv->webview),TRUE); + ev_web_view_find_search_changed(EV_WEB_VIEW(ev_window->priv->webview)); } else { ev_view_find_search_changed (EV_VIEW (ev_window->priv->view)); } @@ -5201,7 +5202,8 @@ find_bar_visibility_changed_cb (EggFindBar *find_bar, } else { ev_web_view_find_set_highlight_search(EV_WEB_VIEW(ev_window->priv->webview),visible); - ev_web_view_find_search_changed(EV_WEB_VIEW(ev_window->priv->webview),visible); + ev_web_view_find_search_changed(EV_WEB_VIEW(ev_window->priv->webview)); + ev_web_view_set_handler(EV_WEB_VIEW(ev_window->priv->webview),visible); } ev_window_update_actions (ev_window); |