GNOME Bugzilla – Bug 615233
force first element to be class even if type seems wrong
Last modified: 2015-02-07 16:57:39 UTC
Tp-GLib has a number of these in its TpProxy base class: const gchar *tp_proxy_get_object_path (gpointer self); Where it was decided to use gpointer to save on the cast. It would be nice to be able to annotate these to say that @self is not a parameter.
Does * @self: (type TpProxy): blah work?
I tried that, with no joy. It still puts a <parameter> field into the XML containing @self. At the moment I'm cheating and have s/gpointer self/TpProxy *self/ into a fake header, but this seems suboptimal. If you want to have a look at the branch adding g-i to tp-glib, it's here: http://git.collabora.co.uk/?p=user/danni/telepathy-glib.git;a=shortlog;h=refs/heads/gobject-introspection
ah, this is probably the same thing as the remaining part of bug 565147 then; the scanner has already decided that it's a static method before applying the (type) annotation. *** This bug has been marked as a duplicate of bug 565147 ***
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]