tools/build_gtk_tree.js
[app.Builder.js] / tools / build_gtk_tree.js
index e6d70ba..8d9adc8 100644 (file)
@@ -276,7 +276,21 @@ function BuildLists () {
         if (method !='Gtk.Container:add') {
             return true;
         }
+        
         var cls = parent.split('.').pop();
+         
+        
+        if (parent == 'Gtk.Bin' || methods['Gtk.Bin'].extendsClasses.indexOf(parent) > -1) {
+            return false;
+        }
+        if (['GtkSource.CompletionInfo',
+             'Gtk.MenuShell',
+             'GtkSource.View', // ??? nothing can be added to it?
+             'GtkClutter.Embed'
+             ].indexOf(parent) > -1) {
+             return false;
+        }
+        
         print("TRY ctor:  " + parent );
 
         var x = new imports.gi.Gtk[cls]();