~oubiwann/libgrip/671558-pygrip

« back to all changes in this revision

Viewing changes to src/gropetypebuiltins.c.in

  • Committer: Duncan McGreggor
  • Date: 2010-11-10 21:04:53 UTC
  • mfrom: (1.2.5 trunk)
  • Revision ID: duncan@ubuntu.com-20101110210453-meve3zlxvc2i00ao
Merged from trunk (gobject introspection).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*** BEGIN file-header ***/
 
2
#include "gropetypebuiltins.h"
 
3
/*** END file-header ***/
 
4
 
 
5
/*** BEGIN file-production ***/
 
6
/* enumerations from "@filename@" */
 
7
#include "@filename@"
 
8
/*** END file-production ***/
 
9
 
 
10
/*** BEGIN value-header ***/
 
11
GType
 
12
@enum_name@_get_type(void) {
 
13
  static GType enum_type_id = 0;
 
14
  if (G_UNLIKELY (!enum_type_id))
 
15
    {
 
16
      static const G@Type@Value values[] = {
 
17
/*** END value-header ***/
 
18
 
 
19
/*** BEGIN value-production ***/
 
20
        { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
 
21
/*** END value-production ***/
 
22
 
 
23
/*** BEGIN value-tail ***/
 
24
        { 0, NULL, NULL }
 
25
      };
 
26
      enum_type_id = g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
 
27
    }
 
28
  return enum_type_id;
 
29
}
 
30
/*** END value-tail ***/
 
31