tools/build_gtk_tree.js
authorAlan Knowles <alan@roojs.com>
Fri, 10 Aug 2012 03:50:58 +0000 (11:50 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 10 Aug 2012 03:50:58 +0000 (11:50 +0800)
tools/build_gtk_tree.js

index e6d70ba..c245843 100644 (file)
@@ -276,7 +276,13 @@ 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;
+        }
+        
         print("TRY ctor:  " + parent );
 
         var x = new imports.gi.Gtk[cls]();