tools/build_gtk_tree.js
[app.Builder.js] / tools / build_gtk_tree.js
index 1a0fa09..4374390 100644 (file)
@@ -297,7 +297,10 @@ function BuildLists () {
         var x = new imports.gi.Gtk[cls]();
         //print("TRY child type:  " + parent);
         
-        //print(parent + " : says children are of type : " + x.child_type());
+        print(parent + " : says children are of type : " + x.child_type());
+        // get the Gtype for the child?
+        
+        
         return true;
         
     }
@@ -361,13 +364,15 @@ right:
         }
         for (var par in methods[cls].can_be_added_to_as) {
             
+            if (!verifyUsage(par,cls)) {
+                continue;
+            }
+            
             if (typeof(usage[par]) == 'undefined') {
                 usage[par] = [];
             }
             
-            if (!verifyUsage(par,cls)) {
-                continue;
-            }
+           
             
             usage[par].pushUnique(cls);
             if (typeof(tops[cls]) == 'undefined') {