[vala] girparser: Always set the type_id for classes and interfaces
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girparser: Always set the type_id for classes and interfaces
- Date: Mon, 4 Apr 2011 14:19:17 +0000 (UTC)
commit 7d6cefa07d4f06d0e87b90e8a6b6cf29e6d9fbee
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]