From: Carlos Garcia Campos Date: Fri, 19 Dec 2008 18:45:32 +0000 (+0000) Subject: Only jump the the location of the find result for the first match when X-Git-Tag: EVINCE_2_25_4~29 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=1945e728811e4011d8a086f5da1486c5adb0dd02;p=evince.git Only jump the the location of the find result for the first match when 2008-12-19 Carlos Garcia Campos * shell/ev-view.c: (jump_to_find_result): Only jump the the location of the find result for the first match when searching. It drastically improves the performance when searching. Bug catched and fixed by Michael Hunold. svn path=/trunk/; revision=3300 --- diff --git a/ChangeLog b/ChangeLog index 111884b1..4ee57b46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-12-19 Carlos Garcia Campos + + * shell/ev-view.c: (jump_to_find_result): + + Only jump the the location of the find result for the first match + when searching. It drastically improves the performance when + searching. Bug catched and fixed by Michael Hunold. + 2008-12-03 Carlos Garcia Campos * properties/ev-properties-main.c: (ev_properties_get_pages): diff --git a/shell/ev-view.c b/shell/ev-view.c index 02a27832..ac4748e0 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -5101,6 +5101,7 @@ jump_to_find_result (EvView *view) rect = ev_view_find_get_result (view, page, view->find_result); doc_rect_to_view_rect (view, page, rect, &view_rect); ensure_rectangle_is_visible (view, &view_rect); + view->jump_to_find_result = FALSE; } }