diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | shell/ev-view.c | 4 |
2 files changed, 11 insertions, 0 deletions
@@ -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): diff --git a/shell/ev-view.c b/shell/ev-view.c index 01397a1..e8bcf0b 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -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 |