[vala/switch-to-gir: 12/24] 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: 12/24] girparser: Set the base type for classes defined in custom vala files.
- Date: Mon, 22 Nov 2010 20:54:38 +0000 (UTC)
commit 1eb1ab9c9b588c69b8e627c2565d1b58c1568cde
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 30d4438..8e5cc64 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1918,10 +1918,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]