[gobject-introspection] Add a second enum to GIMarshallingTests to support pygi tests for non-gtype enums.



commit f86575f337c6dce9a67b606712395d83bf8bfb92
Author: Laszlo Pandy <laszlok2 gmail com>
Date:   Mon Jan 17 15:09:45 2011 +0100

    Add a second enum to GIMarshallingTests to support pygi tests for non-gtype enums.
    
    There was a bug in pygi in which non-gtype enums shared values between themselves.
    That is, if there was an attribute Enum.THE_VALUE, it would be available on as OtherEnum.THE_VALUE as well.
    To make a test case for this bug, we need a second non-gtype enum in GIMarshallingTests to compare with.

 tests/gimarshallingtests.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tests/gimarshallingtests.h b/tests/gimarshallingtests.h
index 0d1763e..d15478f 100644
--- a/tests/gimarshallingtests.h
+++ b/tests/gimarshallingtests.h
@@ -423,6 +423,12 @@ typedef enum
   GI_MARSHALLING_TESTS_ENUM_VALUE3 = 42
 } GIMarshallingTestsEnum;
 
+typedef enum
+{
+  GI_MARSHALLING_TESTS_SECOND_ENUM_SECONDVALUE1,
+  GI_MARSHALLING_TESTS_SECOND_ENUM_SECONDVALUE2,
+} GIMarshallingTestsSecondEnum;
+
 GIMarshallingTestsEnum gi_marshalling_tests_enum_returnv (void);
 
 void gi_marshalling_tests_enum_in (GIMarshallingTestsEnum enum_);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]