Do not use static GTypeInfo and GInterfaceInfo
authorNicola Fontana <ntd@entidi.it>
Wed, 30 Nov 2011 03:02:00 +0000 (22:02 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 30 Nov 2011 03:03:25 +0000 (22:03 -0500)
commitf24d8247b3a20cc62b4be50a0515acffd7e7d277
treea15d9b8de0b3c963bd5e352fbd0e08ffdd51843d
parent1f33446e1fae721cc6c8f260afe2ebfa42dd51c8
Do not use static GTypeInfo and GInterfaceInfo

Either g_type_register_static_simple (used by G_DEFINE_TYPE_EXTENDED)
and G_IMPLEMENT_INTERFACE use automatic variables for GTypeInfo and
GInterfaceInfo structs, while tutorials and source code often use
static variables. This commit consistently adopts the former method.

https://bugzilla.gnome.org/show_bug.cgi?id=600161
21 files changed:
docs/reference/gobject/tut_gtype.xml
docs/reference/gobject/tut_howto.xml
gobject/gboxed.c
gobject/genums.c
gobject/gobject.c
gobject/gparam.c
gobject/gtype.h
gobject/gtypemodule.c
gobject/gtypeplugin.c
gobject/gvaluetypes.c
gobject/testgobject.c
tests/gobject/defaultiface.c
tests/gobject/deftype.c
tests/gobject/ifacecheck.c
tests/gobject/ifaceinit.c
tests/gobject/testcommon.h
tests/refcount/objects.c
tests/refcount/objects2.c
tests/refcount/properties.c
tests/refcount/properties2.c
tests/refcount/signals.c