[vala/0.10] girparser: Support alias syntax used in GIR version 1.2



commit 5ba720919de462421b972df2932e472fb7f82c82
Author: Jürg Billeter <j bitron ch>
Date:   Mon Sep 13 20:54:19 2010 +0200

    girparser: Support alias syntax used in GIR version 1.2

 vala/valagirparser.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 5b6f54f..f213b4d 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -297,9 +297,11 @@ public class Vala.GirParser : CodeVisitor {
 		start_element ("alias");
 		var st = new Struct (reader.get_attribute ("name"), get_current_src ());
 		st.access = SymbolAccessibility.PUBLIC;
-		st.base_type = parse_type_from_name (reader.get_attribute ("target"));
 		st.external = true;
 		next ();
+
+		st.base_type = parse_type (null, null, true);
+
 		end_element ("alias");
 		return st;
 	}



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