GNOME Bugzilla – Bug 697250
Documentation glitch of G_DEFINE_TYPE_EXTENDED causes a compiler error
Last modified: 2013-04-04 11:13:18 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...
Created attachment 240581 [details] [review] patch
Review of attachment 240581 [details] [review]: looks okay.
Comment on attachment 240581 [details] [review] patch https://git.gnome.org/browse/glib/commit/?id=859e4239c575a0e597f32d017d6012be7b4d3ab8
Thanks!