[vala/switch-to-gir: 49/51] girparser: Always set the type_id for classes and interfaces



commit 376002b4d1445eb6415c82ea6b6f193baec2c887
Author: Luca Bruno <lucabru src gnome org>
Date:   Thu Mar 10 22:36:14 2011 +0100

    girparser: Always set the type_id for classes and interfaces

 vala/valagirparser.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index f84d6d7..b6b0711 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -2065,6 +2065,8 @@ public class Vala.GirParser : CodeVisitor {
 			cl.add_base_type (parse_type_from_gir_name (parent));
 		}
 
+		cl.set_type_id ("%s ()".printf (reader.get_attribute ("glib:get-type")));
+
 		next ();
 		var first_field = true;
 		var old_symbol = current_symbol;
@@ -2143,6 +2145,7 @@ public class Vala.GirParser : CodeVisitor {
 		if (cname != null) {
 			iface.set_cname (cname);
 		}
+		iface.set_type_id ("%s ()".printf (reader.get_attribute ("glib:get-type")));
 
 		next ();
 		var old_symbol = current_symbol;



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