GNOME Bugzilla – Bug 796272
gio: adjust annotation of GApplication's "open" signal
Last modified: 2018-05-21 12:36:12 UTC
Currently, the "files" argument is parsed as <parameter name="files" transfer-ownership="none"> <doc xml:space="preserve">an array of #GFiles</doc> <array length="1" zero-terminated="0" c:type="gpointer"> <type name="File"/> </array> </parameter> That is, as a flat array of GFiles. With the patch applied, it is parsed as <parameter name="files" transfer-ownership="none"> <doc xml:space="preserve">an array of #GFiles</doc> <array length="1" zero-terminated="0" c:type="gpointer"> <type name="File" c:type="gpointer"/> </array> </parameter> That is, as an array of GFiles pointers. This seems to be the correct parse.
Created attachment 372234 [details] [review] gio: adjust annotation of GApplication's "open" signal To ensure that the "files" argument is correctly represented as an array of pointers, not as a flat array of structs.
Review of attachment 372234 [details] [review]: I'm not overly fond of this. GFile is an interface, which means it can only be a pointer type. This should likely be fixed in g-ir-scanner.
Review of attachment 372234 [details] [review]: (In reply to Emmanuele Bassi (:ebassi) from comment #2) > Review of attachment 372234 [details] [review] [review]: > GFile is an interface, which means it can only be a pointer type. This > should likely be fixed in g-ir-scanner. Agreed.
g-i tracks bugs on GitLab. Moving this issue there: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/214