Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the VfsFileLookupFunc's return value so that it is nullable #219

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gio-2.0.gir
Original file line number Diff line number Diff line change
Expand Up @@ -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.</doc>
<return-value transfer-ownership="full">
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve">a #GFile for @identifier.</doc>
<type name="File" c:type="GFile*"/>
</return-value>
Expand Down
5 changes: 5 additions & 0 deletions fix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading