GNOME Bugzilla – Bug 682124
scanner: methods cannot have an out-arg as their first arg
Last modified: 2015-02-07 17:03:51 UTC
This patch makes it possible to get a proper representation of gdk_rgba_parse.
Created attachment 221677 [details] [review] scanner: methods cannot have an out-arg as their first arg This ensures that if the first argument of a function like gboolean gdk_rgba_parse (GdkRGBA *rgba, const gchar *spec); is annotated as being an out-arg, the result is a class function with two arguments, not a method with one argument. Previously, the (out) annotation was simply ignored.
Review of attachment 221677 [details] [review]: Makes sense, thanks! ::: giscanner/maintransformer.py @@ +1006,3 @@ + message.warn_node(func, + '%s: The first argument of methods cannot be an ' + 'out-argument' % func.symbol) Very minor: the print format here is inconsistent with the rest of the code; should be (func.symbol, )
Committed with the style fixed. Thanks for the review. Attachment 221677 [details] pushed as b0b4c98 - scanner: methods cannot have an out-arg as their first arg
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]