[vala/switch-to-gir: 9/47] girparser: Set the base type for classes defined in custom vala files.



commit 52dbbc6fde9c85676ded3858e2c70a72a0410e74
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 ae977b9..96d2a36 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1929,10 +1929,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]