From dbb1f2d648cdb8f6213cf42a52f466305f3964ed Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 15 Jun 2005 15:29:19 +0000 Subject: [PATCH] Enable is_open for links, you will need poppler cvs 2005-06-15 Marco Pesenti Gritti * pdf/ev-poppler.cc: Enable is_open for links, you will need poppler cvs * shell/ev-properties.c: (job_fonts_finished_cb): Get a lock on the document when filling the tree view --- ChangeLog | 10 ++++++++++ pdf/ev-poppler.cc | 4 ---- shell/ev-properties.c | 2 ++ 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index d1609993..dde3ccc7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2005-06-15 Marco Pesenti Gritti + + * pdf/ev-poppler.cc: + + Enable is_open for links, you will need poppler cvs + + * shell/ev-properties.c: (job_fonts_finished_cb): + + Get a lock on the document when filling the tree view + 2005-06-15 Marco Pesenti Gritti * backend/ev-document-links.h: diff --git a/pdf/ev-poppler.cc b/pdf/ev-poppler.cc index aebe7ce5..1f1e4e50 100644 --- a/pdf/ev-poppler.cc +++ b/pdf/ev-poppler.cc @@ -661,11 +661,7 @@ build_tree (PdfDocument *pdf_document, gboolean expand; action = poppler_index_iter_get_action (iter); -#ifdef POPPLER_LINK_IS_OPEN expand = poppler_index_iter_is_open (iter); -#else - expand = TRUE; -#endif if (action) { gtk_tree_store_append (GTK_TREE_STORE (model), &tree_iter, parent); link = ev_link_from_action (action); diff --git a/shell/ev-properties.c b/shell/ev-properties.c index b7c0bcc7..15e5ab1f 100644 --- a/shell/ev-properties.c +++ b/shell/ev-properties.c @@ -214,7 +214,9 @@ job_fonts_finished_cb (EvJob *job, EvProperties *properties) model = gtk_tree_view_get_model (GTK_TREE_VIEW (properties->fonts_treeview)); + ev_document_doc_mutex_lock (); ev_document_fonts_fill_model (document_fonts, model); + ev_document_doc_mutex_unlock (); new_job = ev_job_fonts_new (job->document); ev_job_queue_add_job (job, EV_JOB_PRIORITY_LOW); g_object_unref (new_job); -- 2.43.5