~ubuntu-branches/ubuntu/lucid/giggle/lucid

« back to all changes in this revision

Viewing changes to src/giggle-enums.c.in

  • Committer: Bazaar Package Importer
  • Author(s): Andrea Corradi
  • Date: 2009-03-30 19:41:43 UTC
  • mfrom: (3.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090330194143-nyr9ze1xola1shm5
Tags: 0.4.91-1
* New upstream release (Closes:  #519014)
* Use Standards-Version 3.8.1
* Add new Build-Depends
* Update Homepage and watch file
* Update debian/copyright
* Remove patch
* Update path in debian/rules
* Remove defs option from LDFLAGS

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*** BEGIN file-header ***/
2
 
#include "giggle-enums.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 etype = 0;
14
 
        if(!etype) {
15
 
                static const G@Type@Value values[] = {
16
 
/*** END value-header ***/
17
 
 
18
 
/*** BEGIN value-production ***/
19
 
                        {@VALUENAME@, "@VALUENAME@", "@valuenick@"},
20
 
/*** END value-production ***/
21
 
 
22
 
/*** BEGIN value-tail ***/
23
 
                        {0, NULL, NULL}
24
 
                };
25
 
 
26
 
                etype = g_@type@_register_static("@EnumName@", values);
27
 
        }
28
 
        
29
 
        return etype;
30
 
}
31
 
/*** END value-tail ***/
32