Introspect/NameSpace.js
[gnome.introspection-doc-generator] / Introspect / NameSpace.js
index c6c6e3e..4676f90 100644 (file)
@@ -93,8 +93,8 @@ NameSpace = {
             var info_type = GI.base_info_get_type (info);
             switch(info_type) {
                 case  GI.InfoType.OBJECT:
-                    ret.objects.push(GI.base_info_get_name(info));
-                    this.clsGatherInterfaces(ns , GI.base_info_get_name(info));
+                    ret.objects.push(info.get_name());
+                    this.clsGatherInterfaces(ns , info.get_name());
                     continue;
                  case  GI.InfoType.INTERFACE:
                     ret.interfaces.push(info.get_name());
@@ -116,10 +116,10 @@ NameSpace = {
                         continue;
                     }
 
-                    ret.structs.push(GI.base_info_get_name(info));
+                    ret.structs.push(info.get_name());
                     continue;
                 case  GI.InfoType.UNION:
-                    ret.unions.push(GI.base_info_get_name(info));
+                    ret.unions.push(info.get_name());
                     continue;
                 case  GI.InfoType.CONSTANT:
                     new imports.Constant.Constant(info, ret, 'values', []);
@@ -152,8 +152,9 @@ NameSpace = {
     // called when you list the namespace
     clsGatherInterfaces : function(ns, cls)
     {
+        print("clsGatherInterfaces: " + ns + ", " + cls);
         var gi = GI.Repository.get_default();
-        var bb = gi.find_by_name(ns, cls);
+        var bb = GI.Repository.find_by_name(gi,ns, cls);
         var fullname = ns+'.'+cls;
         this.ifaceList = this.ifaceList || { };