]> www.fi.muni.cz Git - evince.git/commitdiff
Acquire lock document when drawing "Loading..." text so that only one
authorCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 18 Dec 2006 13:55:05 +0000 (13:55 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Mon, 18 Dec 2006 13:55:05 +0000 (13:55 +0000)
2006-12-18  Carlos Garcia Campos  <carlosgc@gnome.org>
* shell/ev-view.c: (draw_loading_text):
Acquire lock document when drawing "Loading..." text so that only one
thread will use FontConfig at the same time. Fixes bug #374750.

ChangeLog
shell/ev-view.c

index 0fbc1647192a85958d3c376e8d10c2a945b3c48e..0b1ba1acd0fe274c0398cbca9e89eea1072c347d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-12-18  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * shell/ev-view.c: (draw_loading_text):
+
+       Acquire lock document when drawing "Loading..." text so that only one
+       thread will use FontConfig at the same time. Fixes bug #374750.
+
 2006-12-15  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * shell/ev-page-action.[ch]: (activate_cb):
index 01397a1c5fc1496eb56081829864020c0a4692fc..e8bcf0bd1d1146a43386bbc7241346fbcc49a10d 100644 (file)
@@ -2390,6 +2390,8 @@ draw_loading_text (EvView       *view,
 
        const char *loading_text = _("Loading...");     
 
+       ev_document_doc_mutex_lock ();
+       
        layout = gtk_widget_create_pango_layout (GTK_WIDGET (view), loading_text);
 
        font_desc = pango_font_description_new ();
@@ -2420,6 +2422,8 @@ draw_loading_text (EvView       *view,
 
        pango_font_description_free (font_desc);
        g_object_unref (layout);
+
+       ev_document_doc_mutex_unlock ();
 }
 
 static void