After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 615233 - force first element to be class even if type seems wrong
force first element to be class even if type seems wrong
Status: RESOLVED DUPLICATE of bug 565147
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-04-08 22:34 UTC by Danielle Madeley
Modified: 2015-02-07 16:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Danielle Madeley 2010-04-08 22:34:04 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.
Comment 1 Dan Winship 2010-04-09 02:14:49 UTC
Does

 * @self: (type TpProxy): blah

work?
Comment 2 Danielle Madeley 2010-04-10 01:24:23 UTC
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
Comment 3 Dan Winship 2010-04-26 20:13:33 UTC
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 ***
Comment 4 André Klapper 2015-02-07 16:57:39 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]