mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-05 23:48:44 +02:00
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:
committed by
Matthias Clasen
parent
1f33446e1f
commit
f24d8247b3
@@ -21,7 +21,7 @@
|
||||
/* see http://bugzilla.gnome.org/show_bug.cgi?id=337128 for the purpose of this test */
|
||||
|
||||
#define MY_G_IMPLEMENT_INTERFACE(TYPE_IFACE, iface_init) { \
|
||||
static const GInterfaceInfo g_implement_interface_info = { \
|
||||
const GInterfaceInfo g_implement_interface_info = { \
|
||||
(GInterfaceInitFunc) iface_init, \
|
||||
NULL, \
|
||||
NULL \
|
||||
|
Reference in New Issue
Block a user