<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 31, 2015 at 6:53 AM, Carlos Garnacho <span dir="ltr"><<a href="mailto:carlosg@gnome.org" target="_blank">carlosg@gnome.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">>> + <arg name="cancelled" type="int" summary="whether the gesture was cancelled"/><br>
><br>
> Since this is an "int" maybe it should say "1 if the gesture was<br>
> cancelled, otherwise 0". Or maybe be an enum?<br>
<br>
I've been kept thinking about the enum possibility, but I could just<br>
come up with awkward names<br></blockquote><div><br></div><div>Maybe, like the "enum" extra parameter (as proposed in a patch that appears to not be merged yet), there should be a "bool" one, indicating for some languages that it should map to their built-in bool type. Like the enumerations, it can still be an int or uint in the C api so it won't change anything other than add some documentation and type safety to other languages.<br><br></div><div>Or the enum proposal could be enhanced by special-casing the enum named "bool", if this is considered a simpler change to the syntax.<br><br></div><div>Note that just making it an actual enum with "true" and "false" keys won't work for language wrappers, due to a certain language named after a snake that uses "True" and "False" (ie capitalized)...<br><br></div></div></div></div>