[vala/switch-to-gir-gio: 35/40] girparser: Mark bitfield to be Flags



commit b90fee51084b22f42ab252dde39aa3beadddc581
Author: Luca Bruno <lucabru src gnome org>
Date:   Tue Dec 28 19:19:23 2010 +0100

    girparser: Mark bitfield to be Flags

 vala/valagirparser.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 665f320..418865a 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1707,6 +1707,8 @@ public class Vala.GirParser : CodeVisitor {
 		start_element ("bitfield");
 		var en = new Enum (reader.get_attribute ("name"), get_current_src ());
 		en.access = SymbolAccessibility.PUBLIC;
+		en.is_flags = true;
+
 		next ();
 		var old_symbol = current_symbol;
 		current_symbol = en;



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