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 569930 - g_registered_type_info_get_g_type does not handle GObject
g_registered_type_info_get_g_type does not handle GObject
Status: RESOLVED FIXED
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: 569931
 
 
Reported: 2009-01-31 01:20 UTC by Dan Winship
Modified: 2015-02-07 16:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
make g_registered_type_info_get_g_type() recognize "intern" (909 bytes, patch)
2009-01-31 01:21 UTC, Dan Winship
none Details | Review

Description Dan Winship 2009-01-31 01:20:37 UTC
Johan and I discussed this on IRC but then he disappeared...

GObject-2.0.gir has:

    <class name="Object"
           c:type="GObject"
           abstract="1"
           glib:type-name="GObject"
           glib:get-type="intern">

but g_registered_type_info_get_g_type() expects glib:get-type to always be a function name.
Comment 1 Dan Winship 2009-01-31 01:21:05 UTC
Created attachment 127599 [details] [review]
make g_registered_type_info_get_g_type() recognize "intern"
Comment 2 Colin Walters 2009-02-02 20:39:56 UTC
Looks good; my one comment is that I'm a big fan of comments for magic constants.  The comment could just be a link to this bug.
Comment 3 Dan Winship 2009-02-02 20:42:56 UTC
(In reply to comment #2)
> Looks good; my one comment is that I'm a big fan of comments for magic
> constants.  The comment could just be a link to this bug.

Or maybe in the python code that generates that? But it will eventually go away anyway; once gobject-introspection moves into glib, it will automatically be depending on a version of gobject new enough to have g_object_get_type(), so the special case can go away...

Comment 4 André Klapper 2015-02-07 16:54:01 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]