GNOME Bugzilla – Bug 600161
Do not use static GTypeInfo and GInterfaceInfo
Last modified: 2011-11-30 03:03:41 UTC
Initially reported here: http://mail.gnome.org/archives/gtk-devel-list/2009-October/msg00168.html 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. Patch following
Created attachment 146587 [details] [review] Do not use static GTypeInfo and GInterfaceInfo
FYI, the GTK+ bug was accepted: bug #600158
The following fix has been pushed: f24d824 Do not use static GTypeInfo and GInterfaceInfo
Created attachment 202415 [details] [review] 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.