diff options
author | Milan Crha <mcrha@redhat.com> | 2013-04-12 15:50:06 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2013-04-12 15:50:06 +0800 |
commit | 1c5f6313c58187ce7682058057b63e14ae6f70e5 (patch) | |
tree | b32502d72fe77f9e42e47b89df5e9034b92b9546 /e-util/e-util-enumtypes.c.template | |
parent | 765a50d3df2d53b73b149fc2646f46722add7635 (diff) | |
download | gsoc2013-evolution-1c5f6313c58187ce7682058057b63e14ae6f70e5.tar gsoc2013-evolution-1c5f6313c58187ce7682058057b63e14ae6f70e5.tar.gz gsoc2013-evolution-1c5f6313c58187ce7682058057b63e14ae6f70e5.tar.bz2 gsoc2013-evolution-1c5f6313c58187ce7682058057b63e14ae6f70e5.tar.lz gsoc2013-evolution-1c5f6313c58187ce7682058057b63e14ae6f70e5.tar.xz gsoc2013-evolution-1c5f6313c58187ce7682058057b63e14ae6f70e5.tar.zst gsoc2013-evolution-1c5f6313c58187ce7682058057b63e14ae6f70e5.zip |
Bug #681837 - Make enum type registration thread safe
Diffstat (limited to 'e-util/e-util-enumtypes.c.template')
-rw-r--r-- | e-util/e-util-enumtypes.c.template | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/e-util/e-util-enumtypes.c.template b/e-util/e-util-enumtypes.c.template deleted file mode 100644 index cb2634790c..0000000000 --- a/e-util/e-util-enumtypes.c.template +++ /dev/null @@ -1,38 +0,0 @@ -/*** BEGIN file-header ***/ -#include "e-util-enumtypes.h" - -/*** END file-header ***/ - -/*** BEGIN file-production ***/ -/* enumerations from "@filename@" */ -#include "@filename@" - -/*** END file-production ***/ - -/*** BEGIN value-header ***/ -GType -@enum_name@_get_type (void) -{ - static GType the_type = 0; - - if (the_type == 0) { - static const G@Type@Value values[] = { -/*** END value-header ***/ - -/*** BEGIN value-production ***/ - { @VALUENAME@, - "@VALUENAME@", - "@valuenick@" }, -/*** END value-production ***/ - -/*** BEGIN value-tail ***/ - { 0, NULL, NULL } - }; - the_type = g_@type@_register_static ( - g_intern_static_string ("@EnumName@"), - values); - } - return the_type; -} - -/*** END value-tail ***/ |