[vala/0.50] tests/girwriter: Add missing [Flags] annotation



commit ec76290b5a9caadf57a0249dba499aebcb3773e8
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Fri Jun 25 09:07:16 2021 +0200

    tests/girwriter: Add missing [Flags] annotation

 tests/girwriter/GirTest-1.0.gir-expected | 6 +++---
 tests/girwriter/girtest.vala             | 1 +
 tests/girwriter/girtest.vapi-expected    | 1 +
 3 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/tests/girwriter/GirTest-1.0.gir-expected b/tests/girwriter/GirTest-1.0.gir-expected
index d4bb4291e..87615c322 100644
--- a/tests/girwriter/GirTest-1.0.gir-expected
+++ b/tests/girwriter/GirTest-1.0.gir-expected
@@ -28,9 +28,9 @@
        <enumeration name="SkippedEnum" c:type="GirTestSkippedEnum" glib:type-name="GirTestSkippedEnum" 
glib:get-type="gir_test_skipped_enum_get_type" introspectable="0">
                <member name="value1" c:identifier="GIR_TEST_SKIPPED_ENUM_VALUE1" value="0"/>
        </enumeration>
-       <enumeration name="SkippedFlags" c:type="GirTestSkippedFlags" glib:type-name="GirTestSkippedFlags" 
glib:get-type="gir_test_skipped_flags_get_type" introspectable="0">
-               <member name="value1" c:identifier="GIR_TEST_SKIPPED_FLAGS_VALUE1" value="0"/>
-       </enumeration>
+       <bitfield name="SkippedFlags" c:type="GirTestSkippedFlags" glib:type-name="GirTestSkippedFlags" 
glib:get-type="gir_test_skipped_flags_get_type" introspectable="0">
+               <member name="value1" c:identifier="GIR_TEST_SKIPPED_FLAGS_VALUE1" value="1"/>
+       </bitfield>
        <enumeration name="ErrorTest" c:type="GirTestErrorTest" glib:error-domain="gir-test-error-test-quark">
                <member name="failed" c:identifier="GIR_TEST_ERROR_TEST_FAILED" value="0"/>
                <member name="smelly" c:identifier="GIR_TEST_ERROR_TEST_SMELLY" value="1"/>
diff --git a/tests/girwriter/girtest.vala b/tests/girwriter/girtest.vala
index 61f0f4724..1fa012fce 100644
--- a/tests/girwriter/girtest.vala
+++ b/tests/girwriter/girtest.vala
@@ -57,6 +57,7 @@ namespace GirTest {
        }
 
        [GIR (visible = false)]
+       [Flags]
        public enum SkippedFlags {
                VALUE1
        }
diff --git a/tests/girwriter/girtest.vapi-expected b/tests/girwriter/girtest.vapi-expected
index 7ed0bfe51..d464ec9a7 100644
--- a/tests/girwriter/girtest.vapi-expected
+++ b/tests/girwriter/girtest.vapi-expected
@@ -192,6 +192,7 @@ namespace GirTest {
                VALUE1
        }
        [CCode (cheader_filename = "girtest.h")]
+       [Flags]
        [GIR (visible = false)]
        public enum SkippedFlags {
                VALUE1


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