tools/build_gtk_tree.js
authorAlan Knowles <alan@roojs.com>
Thu, 9 Aug 2012 10:21:50 +0000 (18:21 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 9 Aug 2012 10:21:50 +0000 (18:21 +0800)
tools/build_gtk_tree.js

index b62c2ec..4b00fd8 100644 (file)
@@ -280,15 +280,25 @@ right:
     */
 // these should really be based on heirachy..
     usage = {};
+    tops = {}
     usage['*top'] = implementations['Gtk.Container'];
+    usage['*top'].forEach(function(ch)) {
+        tops[ch] = [ '*top' ];
+    });
     for(var cls in methods) {
         for (var par in methods[cls].can_be_added_to_as) {
             if (typeof(usage[par]) == 'undefined') {
                 usage[par] = [];
             }
             usage[par].pushUnique(cls);
+            
         }
     }
+    for(var par in usage) {
+        // see if the parent can be added to something.
+        
+        
+    }
     
     print(JSON.stringify(usage,null,4));