mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-23 22:16:16 +01:00
gobject: fix G_DEFINE_TYPE_EXTENDED docs so code snippet actually compiles
Flags being used in the G_DEFINE_TYPE_EXTENDED sample was "0", so it should expand to 0 as well, otherwise the compiler would bark with: 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 https://bugzilla.gnome.org/show_bug.cgi?id=697250
This commit is contained in:
parent
cef5ce2012
commit
859e4239c5
@ -1406,7 +1406,7 @@ guint g_type_get_type_registration_serial (void);
|
||||
* (GClassInitFunc) gtk_gadget_class_intern_init,
|
||||
* sizeof (GtkGadget),
|
||||
* (GInstanceInitFunc) gtk_gadget_init,
|
||||
* (GTypeFlags) flags);
|
||||
* 0);
|
||||
* {
|
||||
* const GInterfaceInfo g_implement_interface_info = {
|
||||
* (GInterfaceInitFunc) gtk_gadget_gizmo_init
|
||||
|
Loading…
Reference in New Issue
Block a user