summaryrefslogtreecommitdiff
path: root/shell/ev-window.c
diff options
context:
space:
mode:
authorMichael Webster <[email protected]>2025-04-23 10:21:21 -0400
committerLuke from DC <[email protected]>2025-04-24 18:31:55 +0000
commit82d957afdb16eb0dd9bb1f9023e406c9829c94b4 (patch)
treed59072f6b8d280b1eb02cbdfab8a917e0583ea3f /shell/ev-window.c
parente2469c07f6842bd8b57768f32ddeb55c260c1e7b (diff)
downloadatril-82d957afdb16eb0dd9bb1f9023e406c9829c94b4.tar.bz2
atril-82d957afdb16eb0dd9bb1f9023e406c9829c94b4.tar.xz
epub: Disable thumbnailing sidebar.
A recent update to libwebkitgtk2gtk-4.1 breaks using WebKitWebView in a GtkOffscreenWindow. Disable the thumbnail sidebar with epub documents, and disable updating the GtkWindow thumbnail. ref: https://github.com/WebKit/WebKit/commit/8d7385fad3ffb31d0c438e6b6a50dffb4390840c Fixes: #631.
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 9d625708..5281acda 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -1592,7 +1592,8 @@ ev_window_refresh_window_thumbnail (EvWindow *ev_window)
EvDocument *document = ev_window->priv->document;
if (!document || ev_document_get_n_pages (document) <= 0 ||
- !ev_document_check_dimensions (document)) {
+ !ev_document_check_dimensions (document) ||
+ document->iswebdocument) {
return;
}