if (i == 'buttons') { // problem with Gtk.MessageDialog..
continue;
}
+ if (i[0] == '.') { // parent? -
+ continue;
+ }
this.el[i] = this.config[i];
}
// delete this.listeners ?
// do again so child props work!
for (var i in this.config) {
- if (i == 'type') { // problem with Gtk.Window... - not decided on a better way to handle this.
+ if (i[0] != '.') { // problem with Gtk.Window... - not decided on a better way to handle this.
continue;
}
- if (i == 'buttons') { // problem with Gtk.MessageDialog..
- continue;
- }
- this.el[i] = this.config[i];
+ this.parent.el.child_set_property(this.el, i.substring(1), this.config[i]);
}
// do we need to call 'init here?'
},