]> www.fi.muni.cz Git - evince.git/commitdiff
Remove unnecessary locking.
authorKristian Høgsberg <krh@redhat.com>
Fri, 22 Apr 2005 20:51:57 +0000 (20:51 +0000)
committerKristian Høgsberg <krh@src.gnome.org>
Fri, 22 Apr 2005 20:51:57 +0000 (20:51 +0000)
2005-04-22  Kristian Høgsberg  <krh@redhat.com>

        * shell/ev-view.c (highlight_find_results): Remove unnecessary
        locking.

ChangeLog
shell/ev-view.c

index 1fa098b950096f8b8d7c9a15056fc78fbe3edf69..cae5a5e78fc11ae00c1a18632a30fb9097850b54 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-22  Kristian Høgsberg  <krh@redhat.com>
+
+       * shell/ev-view.c (highlight_find_results): Remove unnecessary
+       locking.
+
 2005-04-22  Bryan Clark  <clarkbw@cvs.gnome.org>
 
        * thumbnailer/evince-thumbnailer.schemas: real fix for bug 172496
index b9d9ab23aec43fcde9b7ee3405bed951275f3704..548fe863d526ceda76672c04384443b0a39a729b 100644 (file)
@@ -538,9 +538,7 @@ highlight_find_results (EvView *view)
 
        find = EV_DOCUMENT_FIND (view->document);
 
-       ev_document_doc_mutex_lock ();
        results = ev_document_find_get_n_results (find, view->current_page);
-       ev_document_doc_mutex_unlock ();
 
        for (i = 0; i < results; i++) {
                EvRectangle rectangle;
@@ -548,10 +546,8 @@ highlight_find_results (EvView *view)
                guchar alpha;
 
                alpha = (i == view->find_result) ? 0x90 : 0x20;
-               ev_document_doc_mutex_lock ();
                ev_document_find_get_result (find, view->current_page,
                                             i, &rectangle);
-               ev_document_doc_mutex_unlock ();
                doc_rect_to_view_rect (view, &rectangle, &view_rectangle);
                draw_rubberband (GTK_WIDGET (view), view->bin_window,
                                 &view_rectangle, alpha);