diff options
author | Kristian Høgsberg <krh@redhat.com> | 2005-04-22 20:51:57 (GMT) |
---|---|---|
committer | Kristian Høgsberg <krh@src.gnome.org> | 2005-04-22 20:51:57 (GMT) |
commit | a537a0e9103d37584e95a89f70a05fda5c191975 (patch) | |
tree | 3eb25323a301c2291f6135e71fd4626709447c89 /shell | |
parent | e184a39335dffd3d7a874efae06130452a78594f (diff) |
Remove unnecessary locking.
2005-04-22 Kristian Høgsberg <krh@redhat.com>
* shell/ev-view.c (highlight_find_results): Remove unnecessary
locking.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-view.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c index b9d9ab2..548fe86 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); |