]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Always set the type_id for classes and interfaces
authorLuca Bruno <lucabru@src.gnome.org>
Thu, 10 Mar 2011 21:36:14 +0000 (22:36 +0100)
committerLuca Bruno <lucabru@src.gnome.org>
Mon, 4 Apr 2011 13:14:47 +0000 (15:14 +0200)
vala/valagirparser.vala

index f84d6d7f44d01278a4bf634538b2da398302e6ee..b6b0711467c25b20a67147c59166694be80872cf 100644 (file)
@@ -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;