XObject = imports.XObject.XObject
+GObject = imports.gi.GObject;
//GtkClutter.Embed..
+Gtk= imports.gi.Gtk;
+
// children are not added at init / but at show stage..
// listener is added on show..
// we should really add a hock to destroy it..
function(cfg) {
XObject.call(this, cfg);
// this is an example...
- this.el.set_column_types ( 6, [
- GObject.TYPE_STRING, // real key
- GObject.TYPE_STRING, // real type
- GObject.TYPE_STRING, // docs ?
- GObject.TYPE_STRING, // visable desc
- GObject.TYPE_STRING, // function desc
- GObject.TYPE_STRING // element type (event|prop)
-
- ] );
+
},
XObject,
{
- pack : 'set_model'
+ pack : 'set_model',
+ init : function()
+ {
+ XObject.prototype.init.call(this);
+ this.el.set_column_types ( 6, [
+ GObject.TYPE_STRING,
+ GObject.TYPE_STRING,
+ GObject.TYPE_STRING,
+ GObject.TYPE_STRING,
+ GObject.TYPE_STRING,
+ GObject.TYPE_STRING
+ ] );
+
+ },
+ append : function( values ) {
+ var iter = new Gtk.TreeIter();
+ this.el.append(iter);
+ for (var i = 0; i < values.length; i++) {
+ this.el.set_value(iter,i,values[i]);
+ }
+
+ }
}
-
);