Builder3/Window.js
[app.Builder.js] / XObjectBase / GtkTreeStore.js
index d022b5e..53b4397 100644 (file)
@@ -3,6 +3,7 @@
 
 XObject = imports.XObject.XObject
  
+GObject = imports.gi.GObject;
 //GtkClutter.Embed..
 // children are not added at init / but at show stage..
 // listener is added on show..
@@ -10,11 +11,24 @@ XObject = imports.XObject.XObject
 GtkTreeStore = XObject.define(
     function(cfg) {
         XObject.call(this, cfg);
-
+        // this is an example...
+       
     }, 
     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 
+            ] );
+            
+        }
     }
 );