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 697250 - Documentation glitch of G_DEFINE_TYPE_EXTENDED causes a compiler error
Documentation glitch of G_DEFINE_TYPE_EXTENDED causes a compiler error
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gobject
2.36.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2013-04-04 10:44 UTC by Andrés G. Aragoneses (IRC: knocte)
Modified: 2013-04-04 11:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (1.44 KB, patch)
2013-04-04 10:45 UTC, Andrés G. Aragoneses (IRC: knocte)
committed Details | Review

Description Andrés G. Aragoneses (IRC: knocte) 2013-04-04 10:44:36 UTC
https://developer.gnome.org/gobject/2.26/gobject-Type-Information.html#G-DEFINE-TYPE-EXTENDED:CAPS

The documentation says:

G_DEFINE_TYPE_EXTENDED (GtkGadget,
                        gtk_gadget,
                        GTK_TYPE_WIDGET,
                        0,
                        G_IMPLEMENT_INTERFACE (TYPE_GIZMO,
                                               gtk_gadget_gizmo_init));

expands to...

[some piece of code which doesn't really compile]

The error is:

maman-bar.c: In function ‘maman_bar_get_type’:
maman-bar.c:36:53: error: ‘flags’ undeclared (first use in this function)
maman-bar.c:36:53: note: each undeclared identifier is reported only once for each function it appears in

Patch coming...
Comment 1 Andrés G. Aragoneses (IRC: knocte) 2013-04-04 10:45:12 UTC
Created attachment 240581 [details] [review]
patch
Comment 2 Emmanuele Bassi (:ebassi) 2013-04-04 11:05:39 UTC
Review of attachment 240581 [details] [review]:

looks okay.
Comment 4 Andrés G. Aragoneses (IRC: knocte) 2013-04-04 11:13:18 UTC
Thanks!