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=600158
This commit is contained in:
Nicola Fontana
2009-11-06 01:21:09 +01:00
committed by Javier Jardón
parent e41f4e85cf
commit 1e1131c959
66 changed files with 83 additions and 83 deletions

View File

@ -11154,7 +11154,7 @@ tictactoe_get_type (void)
if (!ttt_type)
{
static const GTypeInfo ttt_info =
const GTypeInfo ttt_info =
{
sizeof (TictactoeClass),
NULL, /* base_init */
@ -14606,7 +14606,7 @@ tictactoe_get_type (void)
if (!ttt_type)
{
static const GTypeInfo ttt_info =
const GTypeInfo ttt_info =
{
sizeof (TictactoeClass),
NULL, /* base_init */
@ -14963,7 +14963,7 @@ gtk_dial_get_type ()
if (!dial_type)
{
static const GTypeInfo dial_info =
const GTypeInfo dial_info =
{
sizeof (GtkDialClass),
NULL,