Introspect/NameSpace.js
[gnome.introspection-doc-generator] / Introspect / NameSpace.js
index 003aab6..3f52160 100644 (file)
@@ -9,7 +9,24 @@ XObject = imports.XObject.XObject;
 
 console = imports.console.console;
 
+// BC/FC
+if (!GI.Repository) {
+    GI.Repository = GI.IRepository;
+    
+    GI.InfoType = GI.IInfoType;
+    
+    GI.IBaseInfo.prototype.get_name = function(n) {
+        return GI.base_info_get_name(this, n);
+    }
+     GI.IBaseInfo.prototype.get_namespace = function(n) {
+        return GI.base_info_get_namespace(this, n);
+    }
+    GI.IBaseInfo.get_attribute ( n) {
+        return GI.base_info_get_attribute(this, n);
+    }
+}
+
+
 
 NameSpace = {