[vala/switch-to-gir] girparser: Hardcode renaming Atk.ImplementorIface to Atk.Implementor



commit 3290e242378df900c7644bbe94013854d534fcb6
Author: Luca Bruno <lethalman88 gmail com>
Date:   Tue Aug 24 13:28:35 2010 +0200

    girparser: Hardcode renaming Atk.ImplementorIface to Atk.Implementor

 vala/valagirparser.vala |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 3ce3a38..5bcacbd 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -695,8 +695,8 @@ public class Vala.GirParser : CodeVisitor {
 		}
 		end_element ("record");
 
-		if (glib_is_gtype_struct_for != null) {
-			// skip *Class or *Iface
+		if (glib_is_gtype_struct_for != null || (current_namespace.name == "Atk" && st.name == "Implementor")) {
+			// skip *Class or *Iface or AtkImplementor empty struct
 			return null;
 		}
 
@@ -893,7 +893,11 @@ public class Vala.GirParser : CodeVisitor {
 
 	Interface parse_interface () {
 		start_element ("interface");
-		var iface = new Interface (reader.get_attribute ("name"), get_current_src ());
+		var name = reader.get_attribute ("name");
+		if (current_namespace.name == "Atk" && name == "ImplementorIface") {
+			name = "Implementor";
+		}
+		var iface = new Interface (name, get_current_src ());
 		iface.access = SymbolAccessibility.PUBLIC;
 		iface.external = true;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]