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



commit 6ba80067384514b57473f4c42b4ca4ea78820589
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 d64753ac1..64fe6bb0e 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 a08020bd0..9d5ed982b 100644
--- a/tests/girwriter/girtest.vala
+++ b/tests/girwriter/girtest.vala
@@ -55,6 +55,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 807080a33..04b26ab30 100644
--- a/tests/girwriter/girtest.vapi-expected
+++ b/tests/girwriter/girtest.vapi-expected
@@ -190,6 +190,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]