[vala/switch-to-gir-gio: 7/35] girparser: Set the base type for classes defined in custom vala files.
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/switch-to-gir-gio: 7/35] girparser: Set the base type for classes defined in custom vala files.
- Date: Thu, 30 Dec 2010 11:42:14 +0000 (UTC)
commit 0b8e08f0f3875e229e1fc3a3d731277be4ee32bb
Author: Luca Bruno <lucabru src gnome org>
Date: Wed Nov 17 20:28:23 2010 +0100
girparser: Set the base type for classes defined in custom vala files.
vala/valagirparser.vala | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 09ef57a..e7ab88b 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1925,10 +1925,9 @@ public class Vala.GirParser : CodeVisitor {
if (cname != null) {
cl.set_cname (cname);
}
-
- if (parent != null) {
- cl.add_base_type (parse_type_from_gir_name (parent));
- }
+ }
+ if (parent != null) {
+ cl.add_base_type (parse_type_from_gir_name (parent));
}
next ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]