var c = n % _this.config.n_columns;
var r = Math.floor(n/_this.config.n_columns);
i.pack = [ 'attach', c, c+1, r, r+1,
- i.x_options || 5, i.x_padding || 0,
- i.y_options || 5, i.y_padding || 0
+ typeof(i.x_options) == 'undefined' ? 5 : i.x_options,
+ typeof(i.y_options) == 'undefined' ? 5 : i.y_options,
+ typeof(i.x_padding) == 'undefined' ? 0 : i.x_padding,
+ typeof(i.x_padding) == 'undefined' ? 0 : i.x_padding
+
]
}
// delete this.listeners ?
// do again so child props work!
- for (var i in this.config) {
- if (i[0] != '.') { // problem with Gtk.Window... - not decided on a better way to handle this.
- continue;
- }
- this.parent.el.child_set_property(this.el, i.substring(1), this.config[i]);
- }
+
// do we need to call 'init here?'
},