[gnome-builder/wip/gtk4-port] libide/webkit: fix registration of webkit typelib
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] libide/webkit: fix registration of webkit typelib
- Date: Fri, 3 Jun 2022 05:20:11 +0000 (UTC)
commit b2b9b89f221128ea5b4a312901378266fbcb1f21
Author: Christian Hergert <chergert redhat com>
Date: Thu Jun 2 22:18:23 2022 -0700
libide/webkit: fix registration of webkit typelib
src/libide/webkit/ide-webkit-plugin.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/webkit/ide-webkit-plugin.c b/src/libide/webkit/ide-webkit-plugin.c
index bbc84b7e0..63c520f4e 100644
--- a/src/libide/webkit/ide-webkit-plugin.c
+++ b/src/libide/webkit/ide-webkit-plugin.c
@@ -32,9 +32,12 @@ void
_ide_webkit_register_types (PeasObjectModule *module)
{
WebKitWebContext *context;
+ g_autoptr(GError) error = NULL;
g_type_ensure (WEBKIT_TYPE_WEB_VIEW);
- g_irepository_require (NULL, "WebKit2", "4.0", 0, NULL);
+
+ if (!g_irepository_require (NULL, "WebKit2", "5.0", 0, &error))
+ g_warning ("%s", error->message);
context = webkit_web_context_get_default ();
webkit_web_context_set_sandbox_enabled (context, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]