diff options
author | mbkma <[email protected]> | 2021-06-04 17:42:28 +0200 |
---|---|---|
committer | mbkma <[email protected]> | 2021-06-06 10:10:41 +0200 |
commit | 0376d066702a9315a7a6625976d9bdfa835e7677 (patch) | |
tree | dc90d30aea12b03c9a99189aadc73dda629e2b6e /libview | |
parent | ae1c8e7e9e881022bbad8da68b3efcee10268ed0 (diff) | |
download | atril-0376d066702a9315a7a6625976d9bdfa835e7677.tar.bz2 atril-0376d066702a9315a7a6625976d9bdfa835e7677.tar.xz |
Improve search systemfind-sidebar
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 2e01035e..ebb47e61 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -7510,6 +7510,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); |