diff options
Diffstat (limited to 'app-text/evince/files/evince-3.12.2-scroll-search-1.patch')
-rw-r--r-- | app-text/evince/files/evince-3.12.2-scroll-search-1.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/app-text/evince/files/evince-3.12.2-scroll-search-1.patch b/app-text/evince/files/evince-3.12.2-scroll-search-1.patch new file mode 100644 index 0000000..af985ba --- /dev/null +++ b/app-text/evince/files/evince-3.12.2-scroll-search-1.patch @@ -0,0 +1,38 @@ +From 2cb9d88d7b396b6ac4bb01c035a40b48da419b65 Mon Sep 17 00:00:00 2001 +From: Marek Kasik <mkasik@redhat.com> +Date: Mon, 19 May 2014 14:32:19 +0200 +Subject: [PATCH 1/2] [libview] Scroll to the search result selected by user + +Scroll to page on which is the search result selected by user +when not in continuous mode. + +https://bugzilla.gnome.org/show_bug.cgi?id=730252 +--- + libview/ev-view.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/libview/ev-view.c b/libview/ev-view.c +index 7618bbd..393bf77 100644 +--- a/libview/ev-view.c ++++ b/libview/ev-view.c +@@ -7684,6 +7684,9 @@ jump_to_find_page (EvView *view, EvViewFindDirection direction, gint shift) + break; + } + } ++ ++ if (!view->continuous) ++ ev_document_model_set_page (view->model, view->find_page); + } + + static void +@@ -7808,6 +7811,7 @@ ev_view_find_set_result (EvView *view, gint page, gint result) + { + view->find_page = page; + view->find_result = result; ++ jump_to_find_page (view, EV_VIEW_FIND_NEXT, 0); + jump_to_find_result (view); + gtk_widget_queue_draw (GTK_WIDGET (view)); + } +-- +1.9.0 + |