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

index 93d7e9a..2f5e0e1 100644 (file)
@@ -501,7 +501,8 @@ Gtk = XObject.define(
             var ret = [];
             var _this = this;
             // let's assume top down...
-            var inherits = this.getPropertiesFor(pname,'inherits');
+            var inherits = [ cname ];
+            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)) {