XObjectBase/GtkTreeViewColumn.js
authorAlan Knowles <alan@akkbhome.com>
Wed, 1 Dec 2010 23:56:06 +0000 (07:56 +0800)
committerAlan Knowles <alan@akkbhome.com>
Wed, 1 Dec 2010 23:56:06 +0000 (07:56 +0800)
XObjectBase/GtkTreeViewColumn.js

index e69de29..ebb828a 100644 (file)
@@ -0,0 +1,36 @@
+
+//<Script type="Text/javascript">
+
+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..
+// we should really add a hock to destroy it..
+GtkListStore = XObject.define(
+    function(cfg) {
+        XObject.call(this, cfg);
+        // this is an example...
+       
+    }, 
+    XObject,
+    {
+        pack : false,
+        init : function() 
+        {
+            // this is done before pack?
+            this.el = new Gtk.TreeViewColumn();
+            this.parent.el.append_column(this.el);
+            
+            XObject.prototype.init.call(this);
+            
+            if (this.items.length) {
+                this.el.add_attribute(this.items[0].el , 'markup', 4  );
+            }
+            
+
+            
+        }
+    }
+);