[packages/gtk-webkit5] fix remaining glib api issues
atler
atler at pld-linux.org
Sun Jan 19 21:56:38 CET 2025
commit 09e72eacb318069efa1f28afa9b020356a00531e
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Jan 19 21:49:22 2025 +0100
fix remaining glib api issues
glib-api.patch | 35 ++++++++++++++++++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
---
diff --git a/glib-api.patch b/glib-api.patch
index 666869b..4f69704 100644
--- a/glib-api.patch
+++ b/glib-api.patch
@@ -633,7 +633,7 @@ index 959dd985c1664..f385fd67b1074 100644
WEBKIT_API const gchar*
webkit_web_view_get_default_content_security_policy (WebKitWebView *web_view);
-+/*
++/**
+ * webkit_web_view_run_async_javascript_function_in_world: (finish-func webkit_web_view_run_javascript_in_world_finish)
+ * @web_view: a #WebKitWebView
+ * @body: the JavaScript function body
@@ -704,3 +704,36 @@ index 959dd985c1664..f385fd67b1074 100644
G_END_DECLS
#endif
+From fff1b1773bff2ef7c3b867ab019d69faa36c010d Mon Sep 17 00:00:00 2001
+From: Michael Catanzaro <mcatanzaro at redhat.com>
+Date: Wed, 3 Jul 2024 13:36:54 -0700
+Subject: [PATCH] WebKitDOMEventTarget.h:95: Warning: WebKit2WebExtension:
+ invalid "scope" annotation: only valid on callback parameters
+ https://bugs.webkit.org/show_bug.cgi?id=276180
+
+Unreviewed build fix.
+
+Emmanuele recommends using (type gpointer) for the GCallback parameter
+of webkit_dom_event_target_remove_event_listener, since it won't be
+called and is therefore not functioning as a callback.
+
+* Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h:
+
+Canonical link: https://commits.webkit.org/280639@main
+---
+ .../InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h b/Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h
+index 75aac18943865..cbe39b47a30fe 100644
+--- a/Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h
++++ b/Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h
+@@ -92,7 +92,7 @@ WEBKIT_DEPRECATED gboolean webkit_dom_event_target_add_event_listener(WebKitDOM
+ * webkit_dom_event_target_remove_event_listener:
+ * @target: A #WebKitDOMEventTarget
+ * @event_name: A #gchar
+- * @handler: (scope call): A #GCallback
++ * @handler: (type gpointer): A #GCallback
+ * @use_capture: A #gboolean
+ *
+ * Returns: a #gboolean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gtk-webkit5.git/commitdiff/09e72eacb318069efa1f28afa9b020356a00531e
More information about the pld-cvs-commit
mailing list