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 = {
print ("SCAN NAMESPACE ALL DONE");
var gi = GI.Repository.get_default();
- var ver = GI.Repository.get_version(gi,ns);
+ var ver = gi.get_version(ns);
var pth = GI.Repository.get_search_path ();
var gir_path = pth[0].replace(/lib\/girepository-1.0/, 'share\/gir-1.0');
//console.log(fn);
},
-
+
// store all the interfaces, so we can show a list of them later...
// called when you list the namespace
clsGatherInterfaces : function(ns, cls)
{
// print("clsGatherInterfaces: " + ns + ", " + cls);
var gi = GI.Repository.get_default();
- var bb = GI.Repository.find_by_name(gi,ns, cls);
+ var bb = gi.find_by_name(ns, cls);
var fullname = ns+'.'+cls;
this.ifaceList = this.ifaceList || { };
console.log("LOAD DOCS: " + ns);
var gi = GI.Repository.get_default();
- var ver = GI.Repository.get_version(gi,ns);
+ var ver = gi.get_version(ns);
if (!ver) {
this.comments[ns] = {};
return;