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
This commit is contained in:
Nicola Fontana
2011-11-29 22:02:00 -05:00
committed by Matthias Clasen
parent 1f33446e1f
commit f24d8247b3
21 changed files with 29 additions and 29 deletions

View File

@@ -153,7 +153,7 @@ g_type_module_get_type (void)
if (!type_module_type)
{
static const GTypeInfo type_module_info = {
const GTypeInfo type_module_info = {
sizeof (GTypeModuleClass),
NULL, /* base_init */
NULL, /* base_finalize */
@@ -164,7 +164,7 @@ g_type_module_get_type (void)
0, /* n_preallocs */
NULL, /* instance_init */
};
static const GInterfaceInfo iface_info = {
const GInterfaceInfo iface_info = {
(GInterfaceInitFunc) g_type_module_iface_init,
NULL, /* interface_finalize */
NULL, /* interface_data */