XObjectBase/GdkDockBar.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 1 Dec 2010 02:25:35 +0000 (10:25 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 1 Dec 2010 02:25:35 +0000 (10:25 +0800)
XObjectBase/GdkDockBar.js [new file with mode: 0644]

diff --git a/XObjectBase/GdkDockBar.js b/XObjectBase/GdkDockBar.js
new file mode 100644 (file)
index 0000000..50228ee
--- /dev/null
@@ -0,0 +1,25 @@
+
+//<Script type="Text/javascript">
+
+XObject = imports.XObject.XObject
+Gdl     = imports.gi.Gdl;
+// Cell render text..
+
+GdlDock = XObject.define(
+    function(cfg) {
+        XObject.call(this, cfg);
+    }, 
+    XObject,
+    {
+        pack : 'add', // default.. can be pack_start...
+        init : function()
+        {
+            
+            // dock for the current window exists. - use it..
+            this.el = this.get('^').dock || new Gdl.Dock ();
+            this.get('^').dock =  this.el ;
+            this.get('^').layout = new Gdl.DockLayout.c_new (this.el);
+            XObject.prototype.init.call(this);
+        }
+    }
+}; 
\ No newline at end of file