Builder/Provider/Palete/Gtk.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 17 May 2010 07:06:04 +0000 (15:06 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 17 May 2010 07:06:04 +0000 (15:06 +0800)
Builder/Provider/Palete/Gtk.js

index 2f5e0e1..50f64b2 100644 (file)
@@ -505,7 +505,7 @@ Gtk = XObject.define(
             inherits.push.apply(inherits, this.getPropertiesFor(cname,'inherits'));
             funcs.foreach(function(m) {
                 if (m.params.length && typeof(m.params[0].type) == 'string') &&
-                    _this.isA(m.params[0].type, cname)) {
+                    inherits.indexOf(m.params[0].type) > -1) {
                     ret.push(m);
                 }
             });