Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2005-06-15 15:29:19 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-06-15 15:29:19 (GMT)
commitdbb1f2d648cdb8f6213cf42a52f466305f3964ed (patch)
treeed4bf222869b238ee4effcd666ad503127b4929c
parent3be2b7d94dc4475256b89f8033ef5cca17513530 (diff)
Enable is_open for links, you will need poppler cvs
2005-06-15 Marco Pesenti Gritti <mpg@redhat.com> * 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
-rw-r--r--ChangeLog10
-rw-r--r--pdf/ev-poppler.cc4
-rw-r--r--shell/ev-properties.c2
3 files changed, 12 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index d160999..dde3ccc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
2005-06-15 Marco Pesenti Gritti <mpg@redhat.com>
+ * 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 <mpg@redhat.com>
+
* backend/ev-document-links.h:
* pdf/ev-poppler.cc:
* shell/ev-sidebar-links.c: (create_loading_model),
diff --git a/pdf/ev-poppler.cc b/pdf/ev-poppler.cc
index aebe7ce..1f1e4e5 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 b7c0bcc..15e5ab1 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);