diff options
| author | mbkma <[email protected]> | 2021-06-04 17:42:28 +0200 |
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2026-02-13 10:32:41 -0500 |
| commit | c651e208c45e804d74d8e85cdcc29cb123c20800 (patch) | |
| tree | ce124163b859cb42842042ba37c07bfe9326af93 /libview | |
| parent | 481968b14fb7082a5233a47173c462f179811cde (diff) | |
| download | atril-c651e208c45e804d74d8e85cdcc29cb123c20800.tar.bz2 atril-c651e208c45e804d74d8e85cdcc29cb123c20800.tar.xz | |
Improve search system
shell: Add EvFindSidebar widget to show search results
see https://gitlab.gnome.org/GNOME/evince/-/commit/940ce8048e4fc6503dca03c1ce090ff4a11dface
eggfindbar: don't close the findbar when it loses the focus
see https://gitlab.gnome.org/GNOME/evince/-/commit/a2d781fb124bd19861035fd41dacc976e00d19ef
shell: Add the findbar to the main box instead of the view box
libview: Add ev_view_find_set_result
Diffstat (limited to 'libview')
| -rw-r--r-- | libview/ev-view.c | 8 | ||||
| -rw-r--r-- | libview/ev-view.h | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c index 86c83944..17a1e18c 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -7508,6 +7508,14 @@ ev_view_find_previous (EvView *view) } void +ev_view_find_set_result (EvView *view, gint page, gint result) +{ + ev_document_model_set_page (view->model, page); + view->find_result = result; + jump_to_find_result (view); +} + +void ev_view_find_search_changed (EvView *view) { /* search string has changed, focus on new search result */ diff --git a/libview/ev-view.h b/libview/ev-view.h index ac16211f..ce455a53 100644 --- a/libview/ev-view.h +++ b/libview/ev-view.h @@ -72,6 +72,9 @@ void ev_view_zoom (EvView *view, /* Find */ void ev_view_find_next (EvView *view); void ev_view_find_previous (EvView *view); +void ev_view_find_set_result (EvView *view, + gint page, + gint result); void ev_view_find_search_changed (EvView *view); void ev_view_find_set_highlight_search (EvView *view, gboolean value); |
