Introspect/NameSpace.js
[gnome.introspection-doc-generator] / Introspect / NameSpace.js
index 4676f90..7b0e1de 100644 (file)
@@ -152,7 +152,7 @@ NameSpace = {
     // called when you list the namespace
     clsGatherInterfaces : function(ns, cls)
     {
-        print("clsGatherInterfaces: " + ns + ", " + cls);
+       // print("clsGatherInterfaces: " + ns + ", " + cls);
         var gi = GI.Repository.get_default();
         var bb = GI.Repository.find_by_name(gi,ns, cls);
         var fullname = ns+'.'+cls;
@@ -163,7 +163,7 @@ NameSpace = {
            
             var prop = GI.object_info_get_interface(bb,i);
            
-            var add =  GI.base_info_get_namespace(prop) +'.' + GI.base_info_get_name(prop);
+            var add =  prop.get_namespace() +'.' + prop.get_name();
             this.ifaceList[add] = this.ifaceList[add] || [];
             if (this.ifaceList[add].indexOf(fullname) < 0) {
                 this.ifaceList[add].push(fullname);
@@ -198,7 +198,7 @@ NameSpace = {
         
         console.log("LOAD DOCS: " + ns);
         var gi = GI.Repository.get_default();
-        var ver = gi.get_version(ns);
+        var ver = GI.Repository.get_version(gi,ns);
         if (!ver) {
             this.comments[ns] = {};
             return;