diff options
author | Michael Webster <[email protected]> | 2025-04-23 10:21:21 -0400 |
---|---|---|
committer | Luke from DC <[email protected]> | 2025-04-24 18:31:55 +0000 |
commit | 82d957afdb16eb0dd9bb1f9023e406c9829c94b4 (patch) | |
tree | d59072f6b8d280b1eb02cbdfab8a917e0583ea3f /shell/ev-sidebar-thumbnails.c | |
parent | e2469c07f6842bd8b57768f32ddeb55c260c1e7b (diff) | |
download | atril-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-sidebar-thumbnails.c')
-rw-r--r-- | shell/ev-sidebar-thumbnails.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c index 11e43267..c12a7a10 100644 --- a/shell/ev-sidebar-thumbnails.c +++ b/shell/ev-sidebar-thumbnails.c @@ -581,6 +581,10 @@ ev_sidebar_thumbnails_fill_model (EvSidebarThumbnails *sidebar_thumbnails) GtkTreeIter iter; int i; + if (priv->document->iswebdocument) { + return; + } + for (i = 0; i < sidebar_thumbnails->priv->n_pages; i++) { gchar *page_label; gchar *page_string; @@ -1018,7 +1022,7 @@ static gboolean ev_sidebar_thumbnails_support_document (EvSidebarPage *sidebar_page, EvDocument *document) { - return (EV_IS_DOCUMENT_THUMBNAILS (document)); + return (EV_IS_DOCUMENT_THUMBNAILS (document) && !document->iswebdocument); } static const gchar* |