Introspect/NameSpace.js
authorAlan Knowles <alan@akbkhome.com>
Sat, 9 Jun 2012 08:28:44 +0000 (16:28 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sat, 9 Jun 2012 08:28:44 +0000 (16:28 +0800)
Introspect/NameSpace.js

index 44a387d..a1b0254 100644 (file)
@@ -62,7 +62,8 @@ NameSpace = {
         var gi = GI.Repository.get_default();
         var pth = GI.Repository.get_search_path();
         
-        scanGir(pth[0]);
+        pth.forEach(function(dir) { scanGir(dir); });
+        
         ret.sort();
         console.dump(ret);
         return ret;
@@ -100,7 +101,7 @@ NameSpace = {
             var info = gi.get_info (ns, i);
            // print("NAME: " + info.get_name());
             //continue;
-            var info_type = GI.base_info_get_type (info);
+            var info_type = info.get_type();
            // print("Type: " + info_type);
             switch(info_type) {
                 case  GI.InfoType.OBJECT: