summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-08-14 19:35:36 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-08-14 19:35:36 +0000
commit604c558fcacab03601f9531bb69053d2c202b7c5 (patch)
tree380fbf4e2f692c92cb0c1877cdf8b11ca7a51280 /tests
parent721d523bdd9cc3292851c91fd796d29c1ae79921 (diff)
downloadgobject-introspection-604c558fcacab03601f9531bb69053d2c202b7c5.tar.gz
Fix generation of enum/bitfields
2008-08-14 Johan Dahlin <johan@gnome.org> * tests/Makefile.am: * tests/enum.gir: * tools/generate.c (write_enum_info): Fix generation of enum/bitfields svn path=/trunk/; revision=378
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/enum.gir12
2 files changed, 7 insertions, 6 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 69e6952f..bb55f256 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -18,6 +18,7 @@ EXTRA_DIST = \
GIRTESTS = \
boxed.gir.test \
+ enum.gir.test \
object.gir.test
%.gir.test: %.gir
diff --git a/tests/enum.gir b/tests/enum.gir
index f91e6a95..5da381ec 100644
--- a/tests/enum.gir
+++ b/tests/enum.gir
@@ -4,20 +4,20 @@
xmlns:c="http://www.gtk.org/introspection/c/1.0"
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
<namespace name="Foo">
- <enum name="Enum1" type-name="FooEnum" get-type="foo_enum_get_type">
+ <enumeration name="Enum1" glib:type-name="FooEnum" glib:get-type="foo_enum_get_type">
<member name="value1" value="0" />
<member name="value2" value="1" />
<member name="value3" value="2" />
- </enum>
- <flags name="Flags1" type-name="FooFlags" get-type="foo_flags_get_type">
+ </enumeration>
+ <bitfield name="Flags1" glib:type-name="FooFlags" glib:get-type="foo_flags_get_type">
<member name="value1" value="1" />
<member name="value2" value="2" />
<member name="value3" value="4" />
- </flags>
- <enum name="Enum2">
+ </bitfield>
+ <enumeration name="Enum2">
<member name="value1" value="0" />
<member name="value2" value="1" />
<member name="value3" value="2" />
- </enum>
+ </enumeration>
</namespace>
</repository>