--- /dev/null
+
+XObject = imports.XObject.XObject
+
+
+GtkExpander = XObject.define(
+ function(cfg) {
+
+
+ this.events = cfg.events = cfg.events || [];
+ delete cfg.events;
+ XObject.call(this, cfg);
+
+
+ },
+ XObject,
+ {
+ events : false,
+ init : function()
+ {
+ // is this a common feature??? of widgets ...?
+ XObject.prototype.init.call(this);
+ for (var i = 0 ; i < this.events.length ; i++ ) {
+ this.el.add_events (this.events[i] );
+ }
+
+ }
+ }
+
+);
+GtkExpander.config = {
+
+ events : {
+ type : 'Array',
+ array_of : 'Gdk.EventMask'
+ }
+}
\ No newline at end of file