gtktypebuiltins.c.template 965 Bytes
Newer Older
1
/*** BEGIN file-header ***/
2
#include "config.h"
3
4
5
6
7
8
#include "gtk.h"
#include "gtkprivate.h"

/*** END file-header ***/

/*** BEGIN file-production ***/
9
/* enumerations from "@basename@" */
10
11
12
13
14
15
/*** END file-production ***/

/*** BEGIN value-header ***/
GType
@enum_name@_get_type (void)
{
16
17
18
19
20
  static volatile gsize g_define_type_id__volatile = 0;

  if (g_once_init_enter (&g_define_type_id__volatile))
    {
      static const G@Type@Value values[] = {
21
22
23
/*** END value-header ***/

/*** BEGIN value-production ***/
24
        { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
25
26
27
/*** END value-production ***/

/*** BEGIN value-tail ***/
28
29
30
31
32
        { 0, NULL, NULL }
      };
      GType g_define_type_id =
        g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
      g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
33
    }
34
35

  return g_define_type_id__volatile;
36
37
38
39
40
}

/*** END value-tail ***/

/*** BEGIN file-tail ***/
41

42
/*** END file-tail ***/