From 5c811b84b27d80ea339e28537990caef54784ca8 Mon Sep 17 00:00:00 2001 From: fbrouille Date: Wed, 11 Dec 2024 17:57:41 +0000 Subject: [PATCH] Fix the VfsFileLookupFunc's return value Make it nullable Signed-off-by: fbrouille --- Gio-2.0.gir | 2 +- fix.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Gio-2.0.gir b/Gio-2.0.gir index 7543c16d..90f1ce04 100644 --- a/Gio-2.0.gir +++ b/Gio-2.0.gir @@ -85681,7 +85681,7 @@ implementation. The client should return a reference to the new file that has been created for @uri, or %NULL to continue with the default implementation. - + a #GFile for @identifier. diff --git a/fix.sh b/fix.sh index 17a00490..aab434f2 100755 --- a/fix.sh +++ b/fix.sh @@ -176,3 +176,8 @@ xmlstarlet ed -L \ -u '//_:class[@name="StackSwitcher"]/_:property[@name="icon-size"]/_:type/@c:type' -v "GtkIconSize" \ -u '//_:class[@name="StackSwitcher"]/_:property[@name="icon-size"]/_:type/@name' -v "IconSize" \ Gtk-3.0.gir + +# Fix return value of VfsFileLookupFunc that is nullable (according to the description of the function type) +xmlstarlet ed -L \ + -a '//_:callback[@name="VfsFileLookupFunc"]/_:return-value' -type attr -n "nullable" -v "1" \ + Gio-2.0.gir