[libgepub/wip/hadess/cant-register-more-than-once] widget: Fix ePubs not rendering after the first one
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgepub/wip/hadess/cant-register-more-than-once] widget: Fix ePubs not rendering after the first one
- Date: Tue, 30 Mar 2021 18:10:54 +0000 (UTC)
commit 3c821c68c76ae878fc748affa2dc49a8d758041d
Author: Bastien Nocera <hadess hadess net>
Date: Tue Mar 30 20:10:11 2021 +0200
widget: Fix ePubs not rendering after the first one
Fix critical error in gnome-books:
Cannot register URI scheme epub more than once
Create a new WebKitWebContext for each widget, so we don't run into the
error above.
libgepub/gepub-widget.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/libgepub/gepub-widget.c b/libgepub/gepub-widget.c
index 9615227..0ad8bb6 100644
--- a/libgepub/gepub-widget.c
+++ b/libgepub/gepub-widget.c
@@ -460,6 +460,7 @@ GtkWidget *
gepub_widget_new (void)
{
return g_object_new (GEPUB_TYPE_WIDGET,
+ "web-context", g_object_new (WEBKIT_TYPE_WEB_CONTEXT, NULL),
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]