Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--backend/ev-document-links.c2
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6d49c40..20cbe9e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2006-12-25 Carlos Garcia Campos <carlosgc@gnome.org>
+ * backend/ev-document-links.c: (ev_document_links_find_link_dest):
+
+ Run find_link_dest with document lock held, since it's called by links
+ thread and main thread at the same time.
+
+2006-12-25 Carlos Garcia Campos <carlosgc@gnome.org>
+
* shell/ev-view.c: (goto_dest):
Update page-cache when page is changed by the view, so that
diff --git a/backend/ev-document-links.c b/backend/ev-document-links.c
index d077003..c717096 100644
--- a/backend/ev-document-links.c
+++ b/backend/ev-document-links.c
@@ -86,7 +86,9 @@ ev_document_links_find_link_dest (EvDocumentLinks *document_links,
EvDocumentLinksIface *iface = EV_DOCUMENT_LINKS_GET_IFACE (document_links);
EvLinkDest *retval;
+ ev_document_doc_mutex_lock ();
retval = iface->find_link_dest (document_links, link_name);
+ ev_document_doc_mutex_unlock ();
return retval;
}