[vala/switch-to-gir: 49/49] 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/switch-to-gir: 49/49] girparser: Always set the type_id for classes and interfaces
- Date: Thu, 10 Mar 2011 21:42:45 +0000 (UTC)
commit 14191736a2761dc119769adc636aa7c0facfadbc
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]