diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2017-07-19 18:39:01 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2017-07-20 11:08:57 +0100 |
commit | f2eb398a219b170954834bf4a74db90f3ce83c5e (patch) | |
tree | dc03b5256c1eb5d80016dd669b4840a826a45a79 | |
parent | 5a82f4543228344223778d1f77ae1bf1cf3837b8 (diff) | |
download | glib-wip/enum-types-reloc.tar.gz |
Drop the enumeration values from static storagewip/enum-types-reloc
We have API to copy the values at type registration time, now.
-rw-r--r-- | gio/gioenumtypes.c.template | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gio/gioenumtypes.c.template b/gio/gioenumtypes.c.template index e9adc4a38..83e08928c 100644 --- a/gio/gioenumtypes.c.template +++ b/gio/gioenumtypes.c.template @@ -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); } |