diff options
author | rootavish <[email protected]> | 2014-08-06 17:41:34 +0530 |
---|---|---|
committer | rootavish <[email protected]> | 2014-08-06 17:41:34 +0530 |
commit | 65dd892279c70b31509a5e478ae6f9aa44d9cd21 (patch) | |
tree | 22640612acd0a47f979ffbcf7e2fc5226d1abd1f /shell | |
parent | 683022d92b63bea1544e8d19bc57d47ef84f5fff (diff) | |
download | atril-65dd892279c70b31509a5e478ae6f9aa44d9cd21.tar.bz2 atril-65dd892279c70b31509a5e478ae6f9aa44d9cd21.tar.xz |
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.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-window.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |