gdkenumtypes.c.template 946 Bytes
Newer Older
1
/*** BEGIN file-header ***/
2
#include "config.h"
3
4
5
6
7
#include "gdk.h"

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

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

/*** BEGIN value-header ***/
GType
@enum_name@_get_type (void)
{
15
16
17
18
19
  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[] = {
20
21
22
/*** END value-header ***/

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

/*** BEGIN value-tail ***/
27
28
29
30
31
        { 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);
32
    }
33
34

  return g_define_type_id__volatile;
35
36
37
38
39
}

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

/*** BEGIN file-tail ***/
40
 /**/
41
/*** END file-tail ***/