From: Kristian Høgsberg Date: Fri, 22 Apr 2005 20:51:57 +0000 (+0000) Subject: Remove unnecessary locking. X-Git-Tag: EVINCE_0_2_1~3 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=a537a0e9103d37584e95a89f70a05fda5c191975;p=evince.git Remove unnecessary locking. 2005-04-22 Kristian Høgsberg * shell/ev-view.c (highlight_find_results): Remove unnecessary locking. --- diff --git a/ChangeLog b/ChangeLog index 1fa098b9..cae5a5e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-04-22 Kristian Høgsberg + + * shell/ev-view.c (highlight_find_results): Remove unnecessary + locking. + 2005-04-22 Bryan Clark * thumbnailer/evince-thumbnailer.schemas: real fix for bug 172496 diff --git a/shell/ev-view.c b/shell/ev-view.c index b9d9ab23..548fe863 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -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);