From 65dd892279c70b31509a5e478ae6f9aa44d9cd21 Mon Sep 17 00:00:00 2001 From: rootavish Date: Wed, 6 Aug 2014 17:41:34 +0530 Subject: Window title thumbnail job fixed(ePub) In the design change in the previous commit, I forgot to make the thumbnail job used to set the window title a main loop job, I fix that in this commit. Epub thumbnail jobs running as threads, WILL cause a program error occassionally, because we need to use the offscreen webview. --- shell/ev-window.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shell/ev-window.c b/shell/ev-window.c index dfb3d7f2..d765a2d8 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -1376,6 +1376,10 @@ ev_window_refresh_window_thumbnail (EvWindow *ev_window) rotation = ev_document_model_get_rotation (ev_window->priv->model); ev_window->priv->thumbnail_job = ev_job_thumbnail_new (document, 0, rotation, scale); + + if (document->iswebdocument) { + ev_job_set_run_mode(EV_JOB(ev_window->priv->thumbnail_job), EV_JOB_RUN_MAIN_LOOP); + } g_signal_connect (ev_window->priv->thumbnail_job, "finished", G_CALLBACK (ev_window_set_icon_from_thumbnail), ev_window); -- cgit v1.2.1