[vala/switch-to-gir: 12/18] 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/18] girparser: Set the base type for classes defined in custom vala files.
- Date: Wed, 17 Nov 2010 21:02:47 +0000 (UTC)
commit 50317640c9543439e25e6fab24cbee5d34abe2c5
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 7db2922..fe1cbeb 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1913,10 +1913,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]