The docs for GI annotations mention the
(method) annotation, but don’t say anything more enlightening than, ‘This function is a method.’ I thought I was supposed to use it on all my methods, but this has turned out not to be the case, because it breaks the method names in the output of g-ir-scanner. For example,
htsp_connection_close, a method of
HtspConnection, gets the name
connection_close instead of
close, if I annotate it with
So how/when/why is
(method) really supposed to be used?