]> www.fi.muni.cz Git - evince.git/commitdiff
Enable is_open for links, you will need poppler cvs
authorMarco Pesenti Gritti <mpg@redhat.com>
Wed, 15 Jun 2005 15:29:19 +0000 (15:29 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Wed, 15 Jun 2005 15:29:19 +0000 (15:29 +0000)
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

ChangeLog
pdf/ev-poppler.cc
shell/ev-properties.c

index d1609993c97e8eaae97e8fac05b23ecc5e7485b7..dde3ccc795dfef15b46de790ff4c0c2d7efdb2b4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+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:
index aebe7ce5dbceaeba0274aff9e252e2c25b24a7b4..1f1e4e506b5c46f27f0a35e61144f25a6fbb5b23 100644 (file)
@@ -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);
index b7c0bcc7f8f007ebb041edd4fddfcac27a7b5671..15e5ab1f250c0f7e0a92a90ffebbd56506beb8de 100644 (file)
@@ -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);