]> www.fi.muni.cz Git - evince.git/commitdiff
Only jump the the location of the find result for the first match when
authorCarlos Garcia Campos <carlosgc@gnome.org>
Fri, 19 Dec 2008 18:45:32 +0000 (18:45 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Fri, 19 Dec 2008 18:45:32 +0000 (18:45 +0000)
2008-12-19  Carlos Garcia Campos  <carlosgc@gnome.org>

* 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

ChangeLog
shell/ev-view.c

index 111884b1070cb4bb560be34771d7bdd3f873e408..4ee57b4665083ebbc2bb289136911c6ae09c228b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-12-19  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * 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  <carlosgc@gnome.org>
 
        * properties/ev-properties-main.c: (ev_properties_get_pages):
index 02a278325ec63ee8c51fc66306246974782a4cf4..ac4748e00962295f67ec44fe2e2a1b458f90743f 100644 (file)
@@ -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;
        }
 }