Drop the enumeration values from static storage

We have API to copy the values at type registration time, now.
This commit is contained in:
Emmanuele Bassi
2017-07-19 18:39:01 +01:00
parent 5a82f45432
commit f2eb398a21

View File

@@ -17,7 +17,7 @@ GType
if (g_once_init_enter (&g_define_type_id__volatile))
{
static const G@Type@Value values[] = {
const G@Type@Value values[] = {
/*** END value-header ***/
/*** BEGIN value-production ***/
@@ -28,7 +28,7 @@ GType
{ 0, NULL, NULL }
};
GType g_define_type_id =
g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
g_@type@_type_register_static (g_intern_static_string ("@EnumName@"), values);
g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
}